Results 1 to 4 of 4

Thread: Integrating stylesheet with vb.net

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2005
    Posts
    3

    Integrating stylesheet with vb.net

    Hi

    Can you tell me how to integrate stylesheet with vb.net? I have used a tab control and i want to set the backcolor/style of the tab header/button.

    Thanks

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

    Re: Integrating stylesheet with vb.net

    The TabControl is a WinForms component. You don't use stylesheets in WinForms apps. In fact, there is no in-built support for changing the colour, etc. of the tabs on a TabControl. It can be done but it takes some fancy footwork.
    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
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Integrating stylesheet with vb.net

    You could store the information in an XML file, but the routines to set the colors, formatting, etc. will have to be done by you.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Integrating stylesheet with vb.net

    This person has used the config file to store the information. You can go through this article for an idea of what you can do.

    http://www.codeproject.com/cs/miscct...StyleSheet.asp

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