Toolbar images

G

Guest

I have a windows form that has a toolbar on it. There are 4 buttons and there
is an image list associated with this toolbar.

During a recent edit of the application the button images disappeared when
running under the IDE. They still function but no images. I have set the
image list transparent color to empty.

I have also tried resetting the image list images.

I have seen this problem on other boards but have not found a solution yet.

Thanks for any assistance.
 
T

Tampa.NET Koder

Are you using XP Visual Styles? Do you call
Application.EnableVisualStyles()
 
H

Herfried K. Wagner [MVP]

Butch said:
I have a windows form that has a toolbar on it. There are 4 buttons and
there
is an image list associated with this toolbar.

During a recent edit of the application the button images disappeared when
running under the IDE. They still function but no images. I have set the
image list transparent color to empty.

I have also tried resetting the image list images.

I have seen this problem on other boards but have not found a solution
yet.

If you are calling 'Application.EnableVisualStyles', call
'Application.DoEvents' directly after the call to 'EnableVisualStyles'.
 
G

Guest

I am not using XP visual styles. I am not calling
Application.EnableVisualStyles.

I created the toolbar in the IDE, added an image list and then selected the
image for each button. They showed up for most of the development but
dissapeared when I went in to change the form size. This is another issue
where the IDE seems to change the form size on its own.

If you need more information or code please let me know.

Thanks for the assistance.
 

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