473,395 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 TransparentColor 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 7731
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 TransparentColor 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 Axhierarchicalflexgrid 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
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...
4
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 (...
9
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...
0
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)...
3
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)...
4
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...
5
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,...
0
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...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...

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.