473,387 Members | 1,420 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,387 software developers and data experts.

Application.EnableVisualStyles() still required in version 2.0

I have statements that enable visual styles in Application.Designer and in
Application.myApp

I also have in Main

Application.EnableVisualStyles()

Is that still required in version 2.0 ?

Thanks
Nov 5 '06 #1
4 1137
" Academic" <ac************@a-znet.comschrieb:
>I have statements that enable visual styles in Application.Designer and in
Application.myApp

I also have in Main

Application.EnableVisualStyles()

Is that still required in version 2.0 ?
It's not required if you enabled visual styles in the project properties
using the application framework.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 5 '06 #2
I noticed that I can only do it in the Window Application project, not in
the Class Library projects - but it seems to be effective for the entire
solution.

Is that your experience?
Thanks
"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:ul**************@TK2MSFTNGP04.phx.gbl...
>" Academic" <ac************@a-znet.comschrieb:
>>I have statements that enable visual styles in Application.Designer and in
Application.myApp

I also have in Main

Application.EnableVisualStyles()

Is that still required in version 2.0 ?

It's not required if you enabled visual styles in the project properties
using the application framework.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 5 '06 #3

Hello Academic,

In the case of a class library these settings are inherited from the calling
assembly ( exe that calls the dll )
Regards

Michel Posseth [MCP]

" Academic" <ac************@a-znet.comschreef in bericht
news:eA**************@TK2MSFTNGP03.phx.gbl...
>I noticed that I can only do it in the Window Application project, not in
the Class Library projects - but it seems to be effective for the entire
solution.

Is that your experience?
Thanks
"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:ul**************@TK2MSFTNGP04.phx.gbl...
>>" Academic" <ac************@a-znet.comschrieb:
>>>I have statements that enable visual styles in Application.Designer and
in Application.myApp

I also have in Main

Application.EnableVisualStyles()

Is that still required in version 2.0 ?

It's not required if you enabled visual styles in the project properties
using the application framework.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


Nov 6 '06 #4
Aha, thanks
"Michel Posseth [MCP]" <MS**@posseth.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>
Hello Academic,

In the case of a class library these settings are inherited from the
calling assembly ( exe that calls the dll )
Regards

Michel Posseth [MCP]

" Academic" <ac************@a-znet.comschreef in bericht
news:eA**************@TK2MSFTNGP03.phx.gbl...
>>I noticed that I can only do it in the Window Application project, not in
the Class Library projects - but it seems to be effective for the entire
solution.

Is that your experience?
Thanks
"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:ul**************@TK2MSFTNGP04.phx.gbl...
>>>" Academic" <ac************@a-znet.comschrieb:
I have statements that enable visual styles in Application.Designer and
in Application.myApp

I also have in Main

Application.EnableVisualStyles()

Is that still required in version 2.0 ?

It's not required if you enabled visual styles in the project properties
using the application framework.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>



Nov 6 '06 #5

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

Similar topics

1
by: Sylvain Barde | last post by:
When I use Application.EnableVisualStyles() Public Sub New() MyBase.New() Application.EnableVisualStyles() Application.DoEvents()
4
by: #ROBERT | last post by:
(VS 2003 + .NET Framework 1.1 + WinXP Pro SP2) Calling Application.EnableVisualStyles() after the initialization() removes all images in the tab control (in the tab headers I mean). Without...
5
by: NormD | last post by:
I have a windows form application distributed via no click deployment. I am thinking about adding xp theme support using an application manifest. I know the manifest is not downloaded to the client...
9
by: Guy | last post by:
I have extended the datetimepicker control to incorporate a ReadOnly property. I have used the new keyword to implement my own version of the value property, so that if readonly == true then it...
4
by: Chuck | last post by:
Hello everybody, I need to abort execution during start up, while the constructor called by Application.Run is executing. If the database fails to connect during my application's startup I...
4
by: Skysurfer | last post by:
Hi. I made a simple VB.Net 2003 application in which i have one Module with the Sub Main and two forms with un button in each one. I run the application on Windows XP Professional. This is...
20
by: Peter Oliphant | last post by:
How does one launch multiple forms in an application? Using Photoshop as an example, this application seems to be composed of many 'disjoint' forms. Yet, they all seem somewhat 'active' in...
8
by: mike2036 | last post by:
I have an application (that has unmanaged code) and when I launch it without 'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set 'FullTrust' permissions, it launches fine. Is...
3
by: Michael A. Covington | last post by:
I added Application.EnableVisualStyles() as the first statement in Main() of my program, and didn't notice much change in visual appearance, but what I *did* notice is that some of my buttons...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.