Toolbar and menu with XP Style

  • Thread starter Thread starter Juan C. Olivares
  • Start date Start date
J

Juan C. Olivares

Hello...

I created a form with a menu and a toolbox. I created the .manifest file and
the buttons, tabcontrols and other controls works great with the XP style,
but the toolbox and menu don't display the theme... (Have you ever seen the
IE or Outlook Express toolbar? :) That's what I want). What can I do?

Thanks!
Juan C. Olivares
 
Hello,

Juan C. Olivares said:
I created a form with a menu and a toolbox. I created
the .manifest file and the buttons, tabcontrols and other controls
works great with the XP style, but the toolbox and menu don't
display the theme...

If you use .NET 1.0, put this code in your "Sub Main":

\\\
Application.EnableVisualStyles();
Application.DoEvents()
///

Regards,
Herfried K. Wagner
 
I get the same with the manifest file. The toolbar has not the background of
the theme [Please see the outlook toolbar].

Juan C. Olivares
 
Hello,

Juan C. Olivares said:
I get the same with the manifest file. The toolbar has not the
background of the theme [Please see the outlook toolbar].

When starting my application using the code below, the toolbar's
background color will be changed to the color defined in the theme.
Nevertheless, there won't be a gradient (like in Outlook Express):

\\\
Public Class Main
Public Shared Sub Main()
Application.EnableVisualStyles()
Application.DoEvents()
Application.Run(New Form1)
End Sub
End Class
///

Notice that Outlook uses an other toolbar control.

Regards,
Herfried K. Wagner
 
:)
I want the gradient toolbox and menu... How can I use them?

Thanks,
Juan C. Olivares

Herfried K. Wagner said:
Hello,

Juan C. Olivares said:
I get the same with the manifest file. The toolbar has not the
background of the theme [Please see the outlook toolbar].

When starting my application using the code below, the toolbar's
background color will be changed to the color defined in the theme.
Nevertheless, there won't be a gradient (like in Outlook Express):

\\\
Public Class Main
Public Shared Sub Main()
Application.EnableVisualStyles()
Application.DoEvents()
Application.Run(New Form1)
End Sub
End Class
///

Notice that Outlook uses an other toolbar control.

Regards,
Herfried K. Wagner
 
"Herfried K. Wagner" spoke:
Hello,



If you use .NET 1.0, put this code in your "Sub Main":

\\\
Application.EnableVisualStyles();
Application.DoEvents()
///

[nitpicking]
That should read ".NET 1.1", shouldn't it?

Cheers,
 
Hello,

Joerg Jooss said:
If you use .NET 1.0, put this code in your "Sub Main":

\\\
Application.EnableVisualStyles();
Application.DoEvents()
///

[nitpicking]
That should read ".NET 1.1", shouldn't it?

Ooops, typo. You are right.

Regards,
Herfried K. Wagner
 
Back
Top