424,054 Members | 1,078 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,054 IT Pros & Developers. It's quick & easy.

Flexgrid and CellPicture

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.