Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Themed Flowchart scroll bars (Read 2165 times)
craigsimons
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Oct 17th, 2005
Themed Flowchart scroll bars
Oct 28th, 2005 at 8:26pm
Print Post  
Is there an internal method in which the flowchart scroll bars can be rendered with with Windows XP themes? I'm currently using 3rd party themed controls (Janus UI Controls) for my forms, but the flowchart control is the only one that is not theme-aware. Suggestions?
  
Back to top
 
IP Logged
 
SWATalk
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 15
Joined: Oct 23rd, 2005
Re: Themed Flowchart scroll bars
Reply #1 - Oct 30th, 2005 at 2:45pm
Print Post  
Try placing this code in your Main method and you should get themed scrollbars

[code]
// Enable visual styles for XP
Application.EnableVisualStyles();

Application.DoEvents();
[/code]

So your main method would look like something similar to below:

[code]
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
    // Enable visual styles for XP
    Application.EnableVisualStyles();

    Application.DoEvents();

    Application.Run(new frmMain());
}
[/code]
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint