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
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.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.
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.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law