473,474 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Just want to be sure about 2005

Application.EnableVisualStyles()

'There is bug in the implementation of EnableVisualStyles that interferes
with Images stored in an ImageList component and Window Common Controls,

Application.DoEvents() 'Work around

I saw an option that makes me think the above is no longer necessary - is
that correct??

Same for allowing only one instance of an app - following code no longer
required - is that correct??

If
Diagnostics.Process.GetProcessesByName(Diagnostics .Process.GetCurrentProcess.ProcessName).GetLength( 0)
1 Then

Jan 29 '06 #1
4 987
Hi,

The visual styles are enabled by default in vs 2005

Ken
----------------
" **Developer**" <RE*************@a-znet.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Application.EnableVisualStyles()

'There is bug in the implementation of EnableVisualStyles that interferes
with Images stored in an ImageList component and Window Common Controls,

Application.DoEvents() 'Work around

I saw an option that makes me think the above is no longer necessary - is
that correct??

Same for allowing only one instance of an app - following code no longer
required - is that correct??

If
Diagnostics.Process.GetProcessesByName(Diagnostics .Process.GetCurrentProcess.ProcessName).GetLength( 0)
1 Then


Jan 29 '06 #2
" **Developer**" <RE*************@a-znet.com> schrieb:
Application.EnableVisualStyles()

'There is bug in the implementation of EnableVisualStyles that interferes
with Images stored in an ImageList component and Window Common Controls,

Application.DoEvents() 'Work around

I saw an option that makes me think the above is no longer necessary - is
that correct??
IIRC the problem has been fixed.
Same for allowing only one instance of an app - following code no longer
required - is that correct??


ACK. You can enable visual styles and single-instance behavior in "My
Project".

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

Jan 29 '06 #3
Herfried K. Wagner [MVP] wrote:
Same for allowing only one instance of an app - following code no
longer required - is that correct??


ACK. You can enable visual styles and single-instance behavior in "My
Project".


Although personally I find it rather irritating that you can't get the
project to launch from a Sub Main when using that, you're forced to provide
a startup form. Which for my project doesn't really work.

I tried using the old VS2003 method, and it worked on all the controls
except for ComboBoxes, which still had the non-visual-styles appearance and
looked particularly out-of-place. Is there a way to work around this?

--

(O)enone
Jan 29 '06 #4
Thanks

" **Developer**" <RE*************@a-znet.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Application.EnableVisualStyles()

'There is bug in the implementation of EnableVisualStyles that interferes
with Images stored in an ImageList component and Window Common Controls,

Application.DoEvents() 'Work around

I saw an option that makes me think the above is no longer necessary - is
that correct??

Same for allowing only one instance of an app - following code no longer
required - is that correct??

If
Diagnostics.Process.GetProcessesByName(Diagnostics .Process.GetCurrentProcess.ProcessName).GetLength( 0)
1 Then


Jan 29 '06 #5

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

Similar topics

99
by: Jim Hubbard | last post by:
It seems that Microsoft not only does not need the classic Visual Basic developer army (the largest army of developers the world has ever seen), but now they don't need ANY Windows developer at a...
5
by: MLH | last post by:
I'm supposed to set a password for the MySQL root user. The output of mysql_install_db instructed me to run the following commands... /usr/bin/mysqladmin -u root -h appserver password mynwewpasswd...
12
by: CII | last post by:
Hi everybody. I've been reading posts a year old about the fibonacci series right on this newsgroup, and while it's not directly games related, I'll share my own notes as well. On another...
11
by: Peter Oliphant | last post by:
I've been trying all morning to convert my 2003 project (managed) to 2005 (/clr since I have both managed and unmanaged code). I'm guessing I have tens of thousands of lines of code to change. Did...
9
by: mareal | last post by:
I have noticed how the thread I created just stops running. I have added several exceptions to the thread System.Threading.SynchronizationLockException System.Threading.ThreadAbortException...
41
by: JohnR | last post by:
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based...
12
by: Jeff | last post by:
Looking for your highly subjective opinions (from those of you who have been working extensively with VS 2005). I have a client that needs/wants a complete rewrite of an existing application. I...
6
by: Ray Cassick \(Home\) | last post by:
Ok, what is up here. The 2005 framework contains all kinds of cool new structures now that we have Generics and all but they always seem to fall just short of exactly what I need. In 2003 I...
3
by: susiedba | last post by:
hey I want to execute VB 2005 code within a job in SQL 2005; all I see there is 'ActiveX script' is SQL 2005 going to support VB 2005 sometime soon? THANKS Susie
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.