Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Dear All,

I am using a datagridview in vb.net. Its a window base application developed in Window7.
When I install and run the application in window xp. the grid color/grid border color
becomes transparent and have not set any transparent color or property is set to make it transparent.

Have check with xpVisualStyle turned on/off but no success.

Thanks
Sukhen Dass
Posted
Comments
Sergey Alexandrovich Kryukov 12-Jun-14 3:45am    
Is it System.Windows.Forms application?
—SA
Thava Rajan 12-Jun-14 5:17am    
did you try enable application framework in settings
sukhen dass 12-Jun-14 7:11am    
don't know what setting u are pointing. but i have turned on/off xpenablevisualstyle in application setting

1 solution

Probably you mean System.Windows.Forms application. If so, here is my advice: avoid using control transparency with this library, its implementation sucks.

In other words, the problem is not in your code, the problem is in this library and in XP.

If you really want transparency, switch to WPF where everything can be transparent. At the same time, using semi-transparent colors (alpha channel) for graphics rendering with System.Drawing (and hence System.Windows.Forms) would be perfectly fine.

—SA
 
Share this answer
 
v2
Comments
sukhen dass 12-Jun-14 4:18am    
i am not using any transparent Color/behavior even i dont need transparency.its working fine in window7 and not transparent but in windowxp its transparent.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900