473,396 Members | 1,942 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,396 software developers and data experts.

My toolbar button's image is missing

Can Anybody tell me why my toolbar button's image is missing when my app is
run, While the image is well enough in design time ?
Nov 20 '05 #1
7 2461
Hi Peter,

How did you assign the image to the button?

Cor
Can Anybody tell me why my toolbar button's image is missing when my app is run, While the image is well enough in design time ?

Nov 20 '05 #2
Hi,

http://support.microsoft.com/default...b;en-us;327154

Ken
-------------------

"Peter" <zl*****@sina.com> wrote in message
news:uj**************@TK2MSFTNGP11.phx.gbl:
Can Anybody tell me why my toolbar button's image is missing when my app
is
run, While the image is well enough in design time ?


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.0 - Release Date: 6/12/2004
Nov 20 '05 #3
Peter,
In addition to the other comments.

Did you call Application.EnableVisualStyles in your Sub Main?

If you did you also need to call Application.DoEvents.

Something like:
Public Class MainForm

... designer generated code

Public Shared Sub Main()
Application.EnableVisualStyles()
Application.DoEvents()
Application.Run(New MainForm)
End Sub

End Class

There is a bug in the visual styles that if you do not call DoEvents, then
some controls (such as ToolBar) do not paint correctly at run time.

The alternative to the EnableVisualStyles is to use a manifest for the
themes, such as you would under VB.NET 2002 (.NET 1.0)

Hope this helps
Jay

"Peter" <zl*****@sina.com> wrote in message
news:uj**************@TK2MSFTNGP11.phx.gbl...
Can Anybody tell me why my toolbar button's image is missing when my app is run, While the image is well enough in design time ?

Nov 20 '05 #4
I've got it, thank you all.

"Peter" <zl*****@sina.com> дÈëÓʼþ
news:uj**************@TK2MSFTNGP11.phx.gbl...
Can Anybody tell me why my toolbar button's image is missing when my app is run, While the image is well enough in design time ?

Nov 20 '05 #5
"Peter" <zl*****@sina.com> wrote in message news:<uS**************@TK2MSFTNGP09.phx.gbl>...
I've got it, thank you all.

"Peter" <zl*****@sina.com> дÈëÓʼþ
news:uj**************@TK2MSFTNGP11.phx.gbl...
Can Anybody tell me why my toolbar button's image is missing when my app

is
run, While the image is well enough in design time ?


I have been following this thread because i have the same problem.
Unfortunately neither of those solutions has helped.
I am completely stumped at the moment.
Has anyone any other ideas?
Thanks
Nov 20 '05 #6
i tried all the solutions that mentioned here and also the msdn but
still i havent solve the problem.

anyone has other else solutions?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #7
i tried all the solutions that mentioned here and also the msdn but
still i havent solve the problem.

anyone has other else solutions?

USENET???

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #8

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

Similar topics

102
by: me | last post by:
How do I prevent the save/print/email/mypictures toolbar from popping up when IE users place their cursor over photos at my website? Thank you in advance for your help. Signed, me
1
by: Abhi | last post by:
I am working with Toolbar. my problem is that when i make toolBarButton1.Enabled = false. The image on toolbar disappears. How can have the image visible or assign some other image to the toolbar...
0
by: Andy Bates | last post by:
Hi - I have a ToolBar with 32-bit colour icons. It looks really good, but I need to disable some of the buttons. When I do this, I get a grey blob where the image has been converted into a...
2
by: Sveta | last post by:
Hi all! C# question: Does anyone knows how to make a toolbar button image to make visible for a disabled button? When the toolbar button is disabled, only the gray hole is displayed instead...
1
by: ChrisHerrick | last post by:
I'm having problems with my toolbar button text being truncated when I use EnableVisualStyles. Toolbar style is Flat, the button is a dropdown button and I'm setting the buttonsize on the toolbar...
4
by: udir | last post by:
Hi, I created a toolbar, added button and Icons from an ImageList. The icons are transparent for disable mode. The problem is that the icons does not look good, a blue outlet is added to the...
8
by: Mark Goldin | last post by:
I have a toolbar on my form. How do I know what button was clicked?
0
by: Athono | last post by:
I am new to Visual Basic. So the differences between C++ and VB are striking to me. But even this seems like too much. Here is what I am talking about: I got a project out of source safe and I...
3
by: vaniKanabathy | last post by:
I had used toolbar to replace button usage in program . I had disable the image button in toolbar but it not displayed in a shaded mode when disabled. How can i do it because i want to differentiate...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.