473,406 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Images on a toolbar dissappear when enabling visualstyles

Has anyone else had this problem?

I enable visual styles
Application.EnableVisualStyles()

When I do this, all of the images on my toolbar stop showing up.

Also, is it possible to make an image list auto update when the images
for that image list have changed?

~Benny
Nov 21 '05 #1
1 875
> I enable visual styles
Application.EnableVisualStyles()

When I do this, all of the images on my toolbar stop showing up.


Follow Application.EnableVisualStyles() with Application.DoEvents().
Make sure you call these before any ui is created. i.e. in sub main

\\\
Shared Sub Main()
Application.EnableVisualStyles()
Application.DoEvents()
Application.Run(New Form1)
End Sub
///

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.775 / Virus Database: 522 - Release Date: 08/10/2004
Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Code Monkee | last post by:
How can the toolbar and menubar be hidden in IE? When opening the window via javascript I can specify 'toolbar=no,menubar=no', which works fine. However if the window already exists how can I...
1
by: Prakash Wadhwani | last post by:
Under Tools->Startup I have set AllowBuiltInToolbars to NO. Thus in the Print Preview Window, the user cannot CLOSE the window or even Print. In my Report's on Open Event I place the foll...
9
by: Dino M. Buljubasic | last post by:
I have a tool bar and an image list that holds all icon images that are shown on the tool bar. However, I have noticed several times that when I add the images to the buttons on toolbar, they get...
4
by: al | last post by:
Greetings, I have this problem with any image, in any format, I include in ToolBar Control. Those images are in-house developed. The problem is when I include an image in a ToolBar and have its...
1
by: Martin Keeton | last post by:
I.m developing applications using VB.NET and have a number of command buttons that have images on them. When The application is run with the classic windows style look the images appear just fine but...
2
by: Japie Niemand | last post by:
Hi, I have created a UserControl with the CrytalReport viewer. When I run the app and use this UC the Crystalviewer have no images in the toolbar. I have tried by instantiating the Cruysterviewer...
7
by: tongueless | last post by:
Whenever I have "using System.Windows.Forms.VisualStyles" in any project, VS2005 tells me that "'VisualStyles' does not exist in the namespace 'System.Windows.Forms.' Any idea what this might be?...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.