Solved

Images in ToolBar disappeared in debug mode

Posted on 2004-04-22
12
152 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

816 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

8 Experts available now in Live!

Get 1:1 Help Now