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

Adding images to Toolbar


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 for first few times only.
Each time I open my form afterwards, the icons are gone and only blank
buttons are visible.

I did not move any folders around, so all the images are where they were and
they get referenced properly. No changes to the code has been made either.

Any help will be greatfully appreciated
Dino
--
-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download Spam Inspector, the Award Winning Anti-Spam Filter
http://mail.giantcompany.com

Nov 20 '05 #1
9 1572
Hi,

The image list does not read images from disk. It stores them in a resource
file instead. It probably matters how you create the toolbar and bind the
imagelist to it. Could you please post some post code snippet?

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Dino M. Buljubasic" <di*************@rivusglobal.com> wrote in message
news:bscob.86562$EO3.62724@clgrps13...

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 for first few times only. Each time I open my form afterwards, the icons are gone and only blank
buttons are visible.

I did not move any folders around, so all the images are where they were and they get referenced properly. No changes to the code has been made either.
Any help will be greatfully appreciated
Dino
--
-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download Spam Inspector, the Award Winning Anti-Spam Filter
http://mail.giantcompany.com


Nov 20 '05 #2
Hi Dmitry,

Dino mentioned elsewhere that he had 'solved' this one. He had the ToolBar
on a Panel and when he moved it onto the Form itself, the problem went away.
Solved yet not solved....

[...might as well check...]

Yes, I've found Dino's other post.

|| I fixed the problem with icons on the toolbar, after researching I
|| found out that the tool bar can only lay on the form and my was
|| inside a panel. I guess that was the problem)

Does that sound like a valid limitation of the ToolBar?

Regards,
Fergus
Nov 20 '05 #3
* "Fergus Cooney" <fi****@post.com> scripsit:
I fixed the problem with icons on the toolbar, after researching I
found out that the tool bar can only lay on the form and my was
inside a panel. I guess that was the problem)


Does that sound like a valid limitation of the ToolBar?


I am not able to reproduce the problem on a .NET 1.0 machine running
Windows XP Professional.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
Which part of

STAY AWAY FROM ME

is unclear to you Herfried?
Nov 20 '05 #5
No, it does not sounds like that at all but that is what I found at msdn.
Strange but works for me now :)

--
-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download Spam Inspector, the Award Winning Anti-Spam Filter
http://mail.giantcompany.com
"Fergus Cooney" <fi****@post.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi Dmitry,

Dino mentioned elsewhere that he had 'solved' this one. He had the ToolBar on a Panel and when he moved it onto the Form itself, the problem went away. Solved yet not solved....

[...might as well check...]

Yes, I've found Dino's other post.

|| I fixed the problem with icons on the toolbar, after researching I
|| found out that the tool bar can only lay on the form and my was
|| inside a panel. I guess that was the problem)

Does that sound like a valid limitation of the ToolBar?

Regards,
Fergus

Nov 20 '05 #6
* "Dino M. Buljubasic" <di*************@rivusglobal.com> scripsit:
No, it does not sounds like that at all but that is what I found at msdn.
Strange but works for me now :)


Where in MSDN did you find that?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #7
Check at:

http://msdn.microsoft.com/library/de...classtopic.asp

, the last sentence under Remarks heading.

Regards,
Dino

--
-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download Spam Inspector, the Award Winning Anti-Spam Filter
http://mail.giantcompany.com
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:e7*************@tk2msftngp13.phx.gbl...
* "Dino M. Buljubasic" <di*************@rivusglobal.com> scripsit:
No, it does not sounds like that at all but that is what I found at msdn. Strange but works for me now :)


Where in MSDN did you find that?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Nov 20 '05 #8
* "Dino M. Buljubasic" <di*************@rivusglobal.com> scripsit:
Check at:

http://msdn.microsoft.com/library/de...classtopic.asp

, the last sentence under Remarks heading.


Thank you for providing the link.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #9
You welcome Herfried. Tx for your help :)

--
-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download Spam Inspector, the Award Winning Anti-Spam Filter
http://mail.giantcompany.com
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
* "Dino M. Buljubasic" <di*************@rivusglobal.com> scripsit:
Check at:

http://msdn.microsoft.com/library/de...classtopic.asp
, the last sentence under Remarks heading.


Thank you for providing the link.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Nov 20 '05 #10

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

Similar topics

7
by: Andy Bates | last post by:
I have hopefully a simple problem in C#. I designed a form with a listview on left, vert splitter against that, then the remainder of the form from top to bottom: a listview, horiz splitter and...
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...
2
by: dave | last post by:
Im building a Windows Forms application and have started to implement a standard toolbar. Seeing that I have neither the time nor graphic design skills to create professional images for the...
6
by: Juan Pedro Gonzalez | last post by:
I wanted to add a Combobox to a toolbar... Kind of the look you get on VisualStudio's toolbar. I've been able to find some VB 6 samples, but the placeholder option is no longer available for...
7
by: Mitchell Vincent | last post by:
I've been trying to get a standard toolbar to play nice with some nice icons that I have. When I put them on a button or anything they look perfect, but through an imagelist and on a toolbar they...
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...
3
by: GarrettD78 | last post by:
I have a toolbar with an imagelist to build images. The toolbar uses indexes to point to the icon in the image list. At design time I can see the images just fine, but at runtime the images aren't...
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: 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...
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?
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
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
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...

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.