468,121 Members | 1,477 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,121 developers. It's quick & easy.

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 2296
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Abhi | last post: by
reply views Thread by Andy Bates | last post: by
4 posts views Thread by udir | last post: by
8 posts views Thread by Mark Goldin | last post: by
18 posts views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.