|
-
Aug 10th, 2005, 07:15 PM
#1
Thread Starter
Fanatic Member
pls help me
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,
Last edited by popskie; Mar 22nd, 2007 at 02:21 AM.
-
Aug 10th, 2005, 10:02 PM
#2
Re: pls help me
The XpButton class is calling methods from the NativeMethods class to draw itself. Those methods are actually API functions from the uxtheme.dll library.
-
Aug 10th, 2005, 10:24 PM
#3
Thread Starter
Fanatic Member
Re: pls help me
I add NativeMethods class in my own application but nothing happens. Can u tell how use that class. thanks for the reply.
popskie
Last edited by popskie; Aug 10th, 2005 at 10:29 PM.
-
Aug 10th, 2005, 10:34 PM
#4
Re: pls help me
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|