Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 163
  • Last Modified:

Images in ToolBar disappeared in debug mode

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
heartland
Asked:
heartland
  • 4
  • 2
  • 2
  • +2
1 Solution
 
RonaldBiemansCommented:
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
 
heartlandAuthor Commented:
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
 
planoczCommented:
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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
RonaldBiemansCommented:
In what format are your images (jpg,ico etc..)
0
 
heartlandAuthor Commented:
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
 
planoczCommented:
if you post your code I can debug it
0
 
heartlandAuthor Commented:
Thank you, planocz, for your offer.   All settings are in property window and there is no code associated with the toolbar and imagelist.
0
 
leavitt76Commented:
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
 
heartlandAuthor Commented:
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
 
leavitt76Commented:
Good job!  Glad you got it figured out.
0
 
GhostModCommented:
PAQed, with points refunded (50)

GhostMod
Community Support Moderator
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 4
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now