Solved

Images in ToolBar disappeared in debug mode

Posted on 2004-04-22
12
151 Views
Last Modified: 2010-04-24
after I changed the image size.  I tried different combinations of images sizes and button sizes.  I have tried both botton and the image in the same sizes or button size was larger than that of image.  The images were still invisible.  What is the trick?  I asked this question a while ago.   Thanks.
 
0
Comment
Question by:heartland
  • 4
  • 2
  • 2
  • +2
12 Comments
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 10890008
For as far as I know (which isn't far) toolbar image can only be in 2 sizes 16*16 (small buttons) and 32*32 (large buttons)
0
 

Author Comment

by:heartland
ID: 10890168
From "Image Collection Editor" window, I can see that image size is 20x19.  I used 20x19 for image size and button size in the property window.  it did not work.  BTW, I used 16x16 and it did not work neither.
0
 
LVL 27

Expert Comment

by:planocz
ID: 10890341
Hi heartland,

If you had your imageList1 load with images, then got to your Toolbar Buttons collection...
In the Toolbar Button collection editer look at the imageindex row and click to add image to that button.
0
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 10890360
In what format are your images (jpg,ico etc..)
0
 

Author Comment

by:heartland
ID: 10890599
Thank you all for your responses.  All images that I used were from VB.Net.  They are *.ICO files.  

Planocz, I am not sure what you want me to do.  I can add images to imagelist and resign the image to that button, but it does show up.

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 27

Expert Comment

by:planocz
ID: 10890647
if you post your code I can debug it
0
 

Author Comment

by:heartland
ID: 10890749
Thank you, planocz, for your offer.   All settings are in property window and there is no code associated with the toolbar and imagelist.
0
 

Expert Comment

by:leavitt76
ID: 10899844
Have you implemented the XP themes visual styles in your application by any chance?  I have seen this cause issues like your describing.  The fix is to add "Application.DoEvents" immidiately after the code that enables XP visual styles.
0
 

Author Comment

by:heartland
ID: 10899970
Hi leavitt76,

Thanks for your reply.  No, I did not use anything else.  As a matter of fact, I called microsoft and was told it was a confirmed bug.  Here is the link:

http://support.microsoft.com/default.aspx?scid=kb;en-us;327154
0
 

Expert Comment

by:leavitt76
ID: 10900075
Good job!  Glad you got it figured out.
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 11130984
PAQed, with points refunded (50)

GhostMod
Community Support Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now