Toolbar and menu with XP Style

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
 
H

Herfried K. Wagner

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
 
J

Juan C. Olivares

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
 
H

Herfried K. Wagner

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
 
J

Juan C. Olivares

:)
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
 
J

Joerg Jooss

"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,
 
H

Herfried K. Wagner

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top