Solved

Images in ToolBar disappeared in debug mode

Posted on 2004-04-22
12
156 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

631 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