hi
may i ask Q please
1- how can i change the backcolor for mainmenu
2-how can i change the backcolor for DataGrid
3-can i change the form of the Form to my own if yes how ?
thank u
Printable View
hi
may i ask Q please
1- how can i change the backcolor for mainmenu
2-how can i change the backcolor for DataGrid
3-can i change the form of the Form to my own if yes how ?
thank u
Please can any body answer me if that possible or not , even if u don't know how!!!!
1- how can i change the backcolor for mainmenu
You can make it ownerdrawn and override the OnPaint method.
2-how can i change the backcolor for DataGrid
Propably the same method, don't know for sure though.
3-can i change the form of the Form to my own if yes how ?
Yes, but I think that would involve some WINAPI routines with region.
thank u very much Mr nvoigt
but would u please explain the first part with example because i am a bigner in C#( i couldn't understand u)
1) Very difficult. Menus are such an integral part that they don't allow much interference from the application. However, you can make an owner-drawn menu. This means that you draw the menu items yourself. You can use this to draw them with a different background, but you must otherwise emulate Windows.
2) Doesn't the DataGrid simply have a background property?
I find
DataGrid.BackgroundColor
DataGrid.BackColor
DataGrid.AlternateBackColor
Those should suffice.
3) By giving the form a region. Every class deriving from Control has a Region property of type Region, which specifies the displayed region of the control. Using complex regions you can create weird windows, like the DivX player does.