Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / December 2004

Tip: Looking for answers? Try searching our database.

ToolBarButtons Images problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
FIP - 14 Dec 2004 07:13 GMT
I have a problem with displaying images (icons) on ToolBarButtons. It all
works fine at the begining, but enabling visual styles in application makes
icons on buttons invisible, but text still displays. There's no problem
without using  visual styles, only with them. Can't find the answer
anywhere.

Any help would be most welcome.
Mick Doherty - 14 Dec 2004 19:13 GMT
Four options:

1. Move Application.EnableVisualStyles to Sub Main() and follow it with a
call to Application.DoEvents.
2. Supply a Manifest File or Manifest Resource instead of using
Application.EnableVisualStyles.
3. Create and fill the ImageList after the form has loaded instead of via
the designer.
4. Wait for VS2005 where I believe this bug has been fixed.

Signature

Mick Doherty
http://dotnetrix.co.uk/nothing.html

>I have a problem with displaying images (icons) on ToolBarButtons. It all
> works fine at the begining, but enabling visual styles in application
[quoted text clipped - 4 lines]
>
> Any help would be most welcome.
FIP - 15 Dec 2004 07:11 GMT
Well, most irritating problems usually have simplest solutions. DoEvents
worked just fine.

Thanks for the tips, this helps a lot.

> Four options:
>
[quoted text clipped - 9 lines]
> Mick Doherty
> http://dotnetrix.co.uk/nothing.html

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.