|
Does anyone know how they got the controls on the forms to take on the Windows XP appearance. For instance the combobox controls take on a flat border style appeareance which isn't even a DropDownStyle option. All the controls seem to take on this flat style appearence, is there a global setting for the control styles or somthing? |
| MigrationUser 1 Saturday, February 07, 2004 3:55 PM |
In your Main[] function you should add
Application.EnableVisualStyles(); Application.DoEvents(); //required to solve some bugs with the displaying of toolbars etc
This works only under the .net framework 1.1.
Now some controls have the FlatStyle Property which should be set to System like this
button1.FlatStyle = FlatStyle.System;
Not all controls have this property but all controls are displayed using the Windows XP themes when the application is run. |
| MigrationUser 1 Tuesday, February 10, 2004 7:09 AM |
As a matter of fact, they didn't get the Windows XP themes look quite right. Try changing the Color scheme to e.g., Olive Green and you'll see what I mean.
That said, this is not surprising given the fact that the themes API is broken as far as the taskbar parts go. It is pretty much impossible to get the taskbar look exactly the same as the Windows taskbar control unless you paint the taskbar the hard way. |
| MigrationUser 1 Wednesday, February 18, 2004 4:54 AM |
You can also use some 3rd party components to achieve exactly that...( i.e the magic lib and its great menu component etc' ).
|
| MigrationUser 1 Wednesday, February 18, 2004 9:16 PM |
do you know of a good 3rd party control for XPander (the explorerbar)? this one is partially xp but apparently not properly integrated into themes (as in doesnt go olive green). |
| MigrationUser 1 Sunday, February 22, 2004 12:20 AM |
I know of no 3rd party taskbar control that would render itself *exactly* like the explorer taskbar. Most that I've tried fail to take the scheme colors into account. Every single one fails to render properly the expand/collapse button with the nice alpha blend effect.
As I said before, this is not surprising because the themes API does not work. I once considered implementing my own taskbar and I researched this issue a bit. I concluded that in order to render the taskbar *exactly* like the Windows taskbar, you need to do all the drawing yourself and not use the themes API. This would have been a lot of work and I decided its not worth the trouble and did not pursue it further. |
| MigrationUser 1 Monday, February 23, 2004 6:41 AM |
For an alternative option on the navigation menu try http://devexpress.com/?section=/products/NET/XtraNavBar XPander is ok, but this one is exact to the XP look and feel. A very simple but very rich design time experience... When i had downloaded it a month or so ago it was free to VS users. Now it looks like a purchase is needed... |
| MigrationUser 1 Sunday, July 11, 2004 3:40 PM |
Here is what I use.
http://www.windowsforms.net/Default.aspx?tabindex=6&tabid=47
Very stable. Good job from Michael Dobler! |
| MigrationUser 1 Tuesday, May 31, 2005 3:04 AM |