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

Buttons in toolbar not displayed in XP

BS
Hello everybody
On an MDI form, I have some owner drawn menus with pictures.
I added a toolbar , and added a couple of toolbarbutton with pictures for a
few of them. The toolbar is flat, displaying images from an image list with
size of 16*16
The images shows in Windows 2000 but not in Windows XP.

Can somebody tell what I missed ?

Thank you

Nov 20 '05 #1
2 895
BS,
In your Sub Main, call Application.DoEvents after you call
Application.EnableVisualStyles.

Something like:

Public Class MainForm

' normal designer code & your other form code

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

End Class

Hope this helps
Jay
"BS" <lb*@nospam.com> wrote in message
news:u1**************@TK2MSFTNGP10.phx.gbl...
Hello everybody
On an MDI form, I have some owner drawn menus with pictures.
I added a toolbar , and added a couple of toolbarbutton with pictures for a few of them. The toolbar is flat, displaying images from an image list with size of 16*16
The images shows in Windows 2000 but not in Windows XP.

Can somebody tell what I missed ?

Thank you

Nov 20 '05 #2
BS
Thank you so much Jay !!
Application.DoEvents() did the trick


"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:Oc**************@TK2MSFTNGP11.phx.gbl...
BS,
In your Sub Main, call Application.DoEvents after you call
Application.EnableVisualStyles.

Something like:

Public Class MainForm

' normal designer code & your other form code

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

End Class

Hope this helps
Jay
"BS" <lb*@nospam.com> wrote in message
news:u1**************@TK2MSFTNGP10.phx.gbl...
Hello everybody
On an MDI form, I have some owner drawn menus with pictures.
I added a toolbar , and added a couple of toolbarbutton with pictures
for a
few of them. The toolbar is flat, displaying images from an image list

with
size of 16*16
The images shows in Windows 2000 but not in Windows XP.

Can somebody tell what I missed ?

Thank you


Nov 20 '05 #3

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

Similar topics

0
by: Philippe Meunier | last post by:
Hi, I am using the .NET toolbar with VB.NET 2003. My toolbar uses icons images that are actually PNG files and uses alpha blending on it. So to make alpha blending work correctly with the...
2
by: NTE | last post by:
Access 2000 and 2003. I have made a custom toolbar to allow users to filter by form, etc. The only things I want to appear on that toolbar are the 3 buttons to control filtering. At the right...
2
by: Dntc | last post by:
Hi All Is there anyway to enable/disable the toolbar buttons on the fly as like in MFC which helps centralizing this process?Let's i have a toolbar button ToolbarButtonSave which can be...
3
by: Michael C | last post by:
How on earth do you disable ToolBar Buttons and change the images on ToolBar buttons at run-time? Thanks, Michael C.
2
by: Ahmed | last post by:
Hello All, I noticed that the toolbar buttons have the same size. I can not have different buttons' size into one toolbar. is that correct or am I missing something here? is there a way to...
2
by: Ahmed | last post by:
Hello All, I noticed that the toolbar buttons have the same size. I can­ not have different buttons' size into one toolbar. is that correct or­ am I missing something here? is there a way to...
1
by: davesauny | last post by:
Ok heres the situation: I have a form, with a tabcontrol on it. When the form is started there are a couple of command buttons on the first screen and the rest of the tabs in the control are...
9
by: Corni | last post by:
I have an application in Access 2003 OS XP Professional that I need to implement in my organization, has been received from another division of ours. When opened the form frmmain opens that has some...
6
by: =?Utf-8?B?L2Rldi9udWxs?= | last post by:
Hello, i am using visual studio 2003 enterprise architect version. I am making apps for the .Net framework 1.1. While testing an interface, i discovered something strange. In this application...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...

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.