Results 1 to 4 of 4

Thread: pls help me

  1. #1

    Thread Starter
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    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.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    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.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width