![]() |
| | #1 |
| Registered User Join Date: Apr 2003
Posts: 31
| Backcolor-Qs 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 |
| Dragon227Slayer is offline | |
| | #2 |
| Registered User Join Date: Apr 2003
Posts: 31
| Please can any body answer me if that possible or not , even if u don't know how!!!! |
| Dragon227Slayer is offline | |
| | #3 |
| the hat of redundancy hat Join Date: Aug 2001 Location: Hannover, Germany
Posts: 2,769
| 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. |
| nvoigt is offline | |
| | #4 |
| Registered User Join Date: Apr 2003
Posts: 31
| 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) |
| Dragon227Slayer is offline | |
| | #5 |
| Cat without Hat Join Date: Apr 2003
Posts: 8,492
| 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 |
| CornedBee is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|