Groups | Blog | Home
all groups > c# > november 2003 >

c# : Getting XP Style look and feel


Abhi
11/20/2003 11:24:26 PM
How do i get XP Style look and feel for Controls in C#
window application. All the controls i am using are Custum
Miha Markic
11/21/2003 10:05:35 AM
Some controls support it some don't.
Generaly you'll have to set its FlatStyle (Button for example) property to
System.
This is not enough.

If you are working with .net 1.1 you could call
Application.EnableVisualStyles() and Application.DoEvents() before
Application.Run()
or (for both 1.0 and 1.1)
you'll have to include the manifest for your exe assembly (see the thread)
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=Xns9339883653E74perseusnewsxs4allnl%40207.46.248.16&rnum=3&prev=/groups%3Fas_q%3Dxp%2520theme%2520%26safe%3Dimages%26ie%3DUTF-8%26oe%3DUTF-8%26as_ugroup%3D*dotnet*%26lr%3D%26hl%3Den

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com


[quoted text, click to view]

AddThis Social Bookmark Button