Flexgrid and CellPicture

S

sweevil

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?
 
C

Cor Ligthert[MVP]

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
 
J

Jan Hyde (VB MVP)

sweevil <[email protected]>'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?
 
S

sweevil

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top