473,704 Members | 3,676 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Flexgrid and CellPicture

I'm converting a VB6 project to .Net2005. One of the items encountered
was setting the cellpicture onto a flexgrid from an imagelist. The
image background doesn't appear to render correctly.

I put the same image (icon) into the flexgrid and onto a command
button. The icon in the flexgrid has a Blue background - not
transparent. The same icon on the command button has the correct areas
transparent.

I've messed with the TransparentColo r of the imagelist, but to no
avail. I've also messed with exporting the Icon into different formats
- bmp, gif, png. None of which seemed to have an effect.

I'm not really keen on changing the control due to the amount of code
behind it.

Any suggestions?
Feb 4 '08 #1
3 7798
Sweevil,

About 4 years ago I have asked very often in this newsgroup if somebody had
a real good working solution with the FlexGrid in VB.Net to show it to us.

Until now I have seen nothing.

You can try the datagridview for this, which has standard solution for what
you are doing.

Cor

Feb 4 '08 #2
sweevil <sw*****@gmail. com>'s wild thoughts were released on
Mon, 4 Feb 2008 06:25:47 -0800 (PST) bearing the following
fruit:
>I'm converting a VB6 project to .Net2005. One of the items encountered
was setting the cellpicture onto a flexgrid from an imagelist. The
image background doesn't appear to render correctly.

I put the same image (icon) into the flexgrid and onto a command
button. The icon in the flexgrid has a Blue background - not
transparent. The same icon on the command button has the correct areas
transparent.

I've messed with the TransparentColo r of the imagelist, but to no
avail. I've also messed with exporting the Icon into different formats
- bmp, gif, png. None of which seemed to have an effect.

I'm not really keen on changing the control due to the amount of code
behind it.

Any suggestions?
I really would consider using a grid control other than the
flexgrid. If your budget allows I would suggest a third
party grid, some of them are simply excelent.

I realise you may not be keen, but ask yourself how much
time you are spending trying to get the flexgrid to work as
it did in VB6?


--
Jan Hyde

https://mvp.support.microsoft.com/profile/Jan.Hyde
Feb 5 '08 #3
On Feb 4, 12:39 pm, "Cor Ligthert[MVP]" <notmyfirstn... @planet.nl>
wrote:
Sweevil,

About 4 years ago I have asked very often in this newsgroup if somebody had
a real good working solution with the FlexGrid in VB.Net to show it to us.

Until now I have seen nothing.

You can try the datagridview for this, which has standard solution for what
you are doing.

Cor
Thanks for the responses.

We're using flexgrid extensively in our vb6 apps. Actually the
conversion in vb2005 totally blew away the conversion of vb2003 or
original .net.

The Axhierarchicalf lexgrid that our vb6 grids converted to supports
all of the functionality we wanted -- except for the cellpicture.
I've spent very very little time tweaking the code after the
conversion, so I'm very happy with that. I can even get that to work
if I set the cell background to white and edit the icons transparent
areas to white. Hokey I know.

I understand it's a com component that they retrofitted for backwards
compatibility. The datagridview might do as a replacement where
we're doing the cellpicture thing or maybe a listview. We may have to
go with one of those options.

Unfortunately, 3rd party products aren't in the picture - not due to
budget - rather due to client philosophy. If it's not included in the
framework or include with standard tools, they're not using it.

Anyway, thanks again for the replies.

-sweeve
Feb 7 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
5207
by: tombsy | last post by:
Hi gang... I want to have a form that can display data from a datasource that is not fixed. lets say a crosstab query that can change the number of colums and field headings depending on the result. So, I cant have a normal form based on a table or query. I want to use something like the MSFlexgrid or Datagrid to display a dynamic result set.
4
6684
by: VR | last post by:
I am trying to embed a check box into a FlexGrid's cell, but having a problem when I start scrolling the grid. Here is my MyCheckBox class... class MyCheckBox : CheckBox { void Init ( AxMSFlexGridLib.AxMSFlexGrid oGrid,
9
5560
by: JFB | last post by:
Hi All, I have a edit flexgrid, after to fill with different rows manually. How can I insert the rows of my flexgrid to my table (sql server) using ado.net? Any example? I can insert one row with the code below but when I use a for loop to my flexgrid... it doesn't work. Also do you know any advance book for ado.net that you can recomend? Tks in advance JFB
0
1623
by: Xavier Valdés | last post by:
Hi all, I'm using component one's flexgrid (nonclassic) and I have a question... How could I drag and drop ROWS??? (from a component with my flexgrid and another component with flexgrid) Thanks a lot, Xavi
3
2808
by: Xavier Valdés | last post by:
Hi all, I'm using component one's flexgrid (nonclassic) and I have a question... How could I drag and drop ROWS??? (from a component with my flexgrid and another component with flexgrid) Thanks a lot, Xavi
4
4968
by: fripper | last post by:
I have replaced an older machine with a new one and have moved a VB .Net program that I worte on the old machine to the new one. The program uses a FlexGrid control for displaying some stuff in a tabular manner. After transferring the program to the new machine it doesn't run because it cannot find some references; specifically AxMSComCtl2, AxMSFlexGridLib, MSComCtl2 and MSFlexGridLib. These do not appear in the Projects > Add References...
5
4328
by: schapopa | last post by:
I have a flex grid and I am loading data to this flex grid in this way While sqldr.Read j = j + 1 MSFlexGrid1PLSummary.set_TextMatrix(MSFlexGrid1PLSummary.Row, MSFlexGrid1PLSummary.Col, sqldr("date1") & "q-" & sqldr("date2")) MSFlexGrid1PLSummary.Row = 1 MSFlexGrid1PLSummary.CellFontBold = True If Not IsNothing(sqldr("Total1")) Then
0
1823
by: alexh1000 | last post by:
When I insert the FlexGrid control in a dialog (using controls toolbar) the dialog fails to open on program execution(DoModal returns a -1). If I remove the FlexGrid from the dialog, the dialog opens so it is definitely a flexgrid related issue. This is using VC++ 6.0 I did not change any of the default FlexGrid properties yet. Thanks
3
5836
by: ArmageddonAsh | last post by:
I'm trying to make an application that will allow the user to enter data into a flexgrid (that's done) and then save the data from that flexgrid into a CSV file but even though the file is made none of the data from the flexgrid goes into the CSV file and so I have a couple of questions. 1, How do I make the application load the data from a specific CSV file? 2, How do I make it so that the user is able to add information to the data and...
0
8764
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8677
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9266
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9130
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8974
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7879
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4435
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3130
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2074
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.