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

Toolbar images disappear

I've got a toolbar reading images from an image list. Inside of visual
studio the images show up fine, but once I compile and run the program the
images don't show up in the toolbar. Does anyone know why this is
happening?
Nov 21 '05 #1
3 1083
"Marco" <no****************@hotmail.com> schrieb:
I've got a toolbar reading images from an image list. Inside of visual
studio the images show up fine, but once I compile and run the program the
images don't show up in the toolbar. Does anyone know why this is
happening?


If you are using Windows XP Visual Styles, make sure you call
'Application.DoEvents' directly after calling
'Application.EnableVisualStyles'.

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

Nov 21 '05 #2
I tried adding that in and it made no difference, disabling visual styles
also made no difference.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:O0**************@TK2MSFTNGP10.phx.gbl...
"Marco" <no****************@hotmail.com> schrieb:
I've got a toolbar reading images from an image list. Inside of visual
studio the images show up fine, but once I compile and run the program
the images don't show up in the toolbar. Does anyone know why this is
happening?


If you are using Windows XP Visual Styles, make sure you call
'Application.DoEvents' directly after calling
'Application.EnableVisualStyles'.

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

Nov 21 '05 #3
Turns out that you were right. I was calling EnableVisualStyles after
InitializeComponent which is what screwed everything up. Once I put it
before InitializeComponent everything worked. Thanks for the help.
"Marco" <no****************@hotmail.com> wrote in message
news:eB**************@TK2MSFTNGP14.phx.gbl...
I tried adding that in and it made no difference, disabling visual styles
also made no difference.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:O0**************@TK2MSFTNGP10.phx.gbl...
"Marco" <no****************@hotmail.com> schrieb:
I've got a toolbar reading images from an image list. Inside of visual
studio the images show up fine, but once I compile and run the program
the images don't show up in the toolbar. Does anyone know why this is
happening?


If you are using Windows XP Visual Styles, make sure you call
'Application.DoEvents' directly after calling
'Application.EnableVisualStyles'.

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


Nov 21 '05 #4

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

Similar topics

2
by: Japie Niemand | last post by:
Hi, I have created a UserControl with the CrytalReport viewer. When I run the app and use this UC the Crystalviewer have no images in the toolbar. I have tried by instantiating the Cruysterviewer...
3
by: GarrettD78 | last post by:
I have a toolbar with an imagelist to build images. The toolbar uses indexes to point to the icon in the image list. At design time I can see the images just fine, but at runtime the images aren't...
0
by: CrimeMaster | last post by:
Hi My IE toolbar is based on the Microsoft sample KKBar. I have draw a lot of buttons on it in which some are simply pushDown buttons and some are dropdowns.Beside this I have Made a Setting...
0
by: Ryan Liu | last post by:
Hi, I have this inconsistent problem for days and really get me exhausted. I have a user control with a datagrid, a small toolbar, a label and a text box on it. Toolbar has buttons to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.