473,379 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

VB 2005 Visual Styles problem

My application seems to be ignoring Enable XP visual styles, which is
ticked on in the application properties.

the Toolbar and Menubar, which appear the nice looking shaded blue
appear like that whilst in the IDE, but when I run the app, they both
go to boring grey.

In the application.designer.vb self generated file, it does have
PublicSubNew()
MyBase.New(Global.Microsoft.VisualBasic.Applicatio nServices.Authent
icationMode.Windows)
Me.IsSingleInstance = false
Me.EnableVisualStyles = true
Me.SaveMySettingsOnExit = true
Me.ShutDownStyle =
Global.Microsoft.VisualBasic.ApplicationServices.S hutdow
nMode.AfterMainFormCloses
EndSub

If i create a brand new application, just as a test and drop the two
controls into that, they appear with visual styles.

So it looks like its something to do with my project, but i can't find
out where or why.

any help appreciated.

Cheers

Nig

Aug 18 '06 #1
3 2012
In your test application what are the controls you tried ? In particular
make sure you don't confuse menubar,toolbar with menustrip/toolstrip...

--
Patrice

<nk******@googlemail.coma écrit dans le message de news:
11**********************@h48g2000cwc.googlegroups. com...
My application seems to be ignoring Enable XP visual styles, which is
ticked on in the application properties.

the Toolbar and Menubar, which appear the nice looking shaded blue
appear like that whilst in the IDE, but when I run the app, they both
go to boring grey.

In the application.designer.vb self generated file, it does have
PublicSubNew()
MyBase.New(Global.Microsoft.VisualBasic.Applicatio nServices.Authent
icationMode.Windows)
Me.IsSingleInstance = false
Me.EnableVisualStyles = true
Me.SaveMySettingsOnExit = true
Me.ShutDownStyle =
Global.Microsoft.VisualBasic.ApplicationServices.S hutdow
nMode.AfterMainFormCloses
EndSub

If i create a brand new application, just as a test and drop the two
controls into that, they appear with visual styles.

So it looks like its something to do with my project, but i can't find
out where or why.

any help appreciated.

Cheers

Nig

Aug 18 '06 #2
If you change the Start up form, does the error go away?

Tommaso

nk******@googlemail.com ha scritto:
My application seems to be ignoring Enable XP visual styles, which is
ticked on in the application properties.

the Toolbar and Menubar, which appear the nice looking shaded blue
appear like that whilst in the IDE, but when I run the app, they both
go to boring grey.

In the application.designer.vb self generated file, it does have
PublicSubNew()
MyBase.New(Global.Microsoft.VisualBasic.Applicatio nServices.Authent
icationMode.Windows)
Me.IsSingleInstance = false
Me.EnableVisualStyles = true
Me.SaveMySettingsOnExit = true
Me.ShutDownStyle =
Global.Microsoft.VisualBasic.ApplicationServices.S hutdow
nMode.AfterMainFormCloses
EndSub

If i create a brand new application, just as a test and drop the two
controls into that, they appear with visual styles.

So it looks like its something to do with my project, but i can't find
out where or why.

any help appreciated.

Cheers

Nig
Aug 18 '06 #3
On 18 Aug 2006 06:01:51 -0700, nk******@googlemail.com wrote:
>My application seems to be ignoring Enable XP visual styles, which is
ticked on in the application properties.

the Toolbar and Menubar, which appear the nice looking shaded blue
appear like that whilst in the IDE, but when I run the app, they both
go to boring grey.

In the application.designer.vb self generated file, it does have
PublicSubNew()
MyBase.New(Global.Microsoft.VisualBasic.Applicati onServices.Authent
icationMode.Windows)
Me.IsSingleInstance = false
Me.EnableVisualStyles = true
Me.SaveMySettingsOnExit = true
Me.ShutDownStyle =
Global.Microsoft.VisualBasic.ApplicationServices. Shutdow
nMode.AfterMainFormCloses
EndSub

If i create a brand new application, just as a test and drop the two
controls into that, they appear with visual styles.

So it looks like its something to do with my project, but i can't find
out where or why.

any help appreciated.

Cheers

Nig
"Shaded Blue" implies to me, a blue gradient. If that's the case, I'm curious as to what default
condition produces a blue gradient in design.

The most common way to reproduce what you desescribe if there is a default gradient on a toolstrip
in design is a line of code at runtime that references the ToolStrip's BackColor property. With
VisualStyles, for the default gradient to display, the BackColor is Nothing, not
SystemColors.Control which is usually grey in most cases.

Gene
Aug 19 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Anand | last post by:
Hi, I have done a sample windows application with controls looks resembling to Windows XP Visual Styles by using the guidelines http://msdn.microsoft.com/library/default.asp? url=/library/en-...
2
by: Alvo von Cossel I | last post by:
hi, i have an app with a lot of stuff including an optios form. 1 of the options is disabling the xp visual styles. i know how to enable them but not how to disable them. has anyone got an...
10
by: Robert Jacobson | last post by:
Hi, I'm develing a COM add-in for Microsoft Word XP that displays a form. I'd like to have the form display using the Windows XP theme. However, neither using a manifest nor calling...
3
by: Tim | last post by:
Hi, The following code works just fine in VS 2003 but in VS 2005 I am getting an error: The code: DateTime dClose = System.Convert.ToDateTime(now.Date.ToString("MMM dd, yyyy") + " " +...
0
by: fiona | last post by:
Innovasys Ltd., a leader in help authoring and documentation tools, today announced the inclusion of a tailored version of the Innovasys HelpStudio help authoring product, HelpStudio Lite, in the...
5
by: MLM450 | last post by:
I want to use visual styles in my app, but it is causing a problem with a DLL I use. Is there a way to disable visual styles for that DLL? I do not have access to the code for the DLL. The DLL's...
1
by: Nogusta123 | last post by:
Hi, I have had a lot of problems getting web pages, master pages and content pages to render in VS2005 design view the same as they would in Internet Explorer. I did a lot of looking on the...
0
by: Lubomir | last post by:
Hi, I have an windows app developed in MS VS 2003, in C++ language. I have now rebuilt the project with MS VS 2005. I expected my UI will have the XP look, what didn't happend. What should I...
1
by: =?Utf-8?B?UmljaA==?= | last post by:
On my old workstation (development workstation) if I set Application/Enable XP visual styles - I was able to get/see the visual styles - like button borders highlighting when you run the mouse over...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.