472,356 Members | 487 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,356 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 7489
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

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.