Click to See Complete Forum and Search --> : pls help me
popskie
Aug 10th, 2005, 07:15 PM
hi,
I have downloaded this source code in c#. If I add another textbox the properties will automatically change into XP look like during runtime and I dont understand what code the are using. Can anybody explain me here.
Pls look at the attach zip file.
Popskie,
jmcilhinney
Aug 10th, 2005, 10:02 PM
The XpButton class is calling methods from the NativeMethods class to draw itself. Those methods are actually API functions from the uxtheme.dll library.
popskie
Aug 10th, 2005, 10:24 PM
I add NativeMethods class in my own application but nothing happens. Can u tell how use that class. thanks for the reply.
popskie
jmcilhinney
Aug 10th, 2005, 10:34 PM
I'm afraid that's up to you to work out. They are just API calls like any other, but it is a little complex drawing entire controls yourself. If you want visual style support I suggest you just go to www.skybound.ca and download their VisualStyles component. If you really want to learn how to do this yourself, then there's not much point in my doing the work for you. :)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.