Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Images in ToolBar disappeared in debug mode

Posted on 2004-04-22
12
Medium Priority
?
158 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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
 
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

722 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