473,659 Members | 2,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1607
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.c om> wrote in message
news:bscob.8656 2$EO3.62724@clg rps13...

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.co m> 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.co m> wrote in message
news:%2******** ********@TK2MSF TNGP10.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.c om> 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******** *****@tk2msftng p13.phx.gbl...
* "Dino M. Buljubasic" <di************ *@rivusglobal.c om> 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.c om> 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******** ********@tk2msf tngp13.phx.gbl. ..
* "Dino M. Buljubasic" <di************ *@rivusglobal.c om> 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
2349
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 tab control (very similar to outlook express). I then started coding and realised that I needed to add a ToolBar. When I added this, it didn't appear at the top as expected, but at the top of the tab control and I couldn't get it to appear where...
4
1180
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 Enabled property set to False, at runtime, the image just disappears, leaving a square grayed area with nothing inside it. ( while it is supposed to show the image in gray color)??
2
1005
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 toolbar, how can I reuse the toobar images that other applications on my machine already use? Is this possible? If not, is there a resource where I can download some of these images? Thanks!
6
3117
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 ToolbarButtons... Does anyone know how this could be done? Looking forward to hear from you,
7
2936
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 all have this blue aura around them. I assume that is from the transparency, but I don't understand why almost any other control displays them properly.. There really is no replacement for the toolbar (without paying!), so I hope someone can tell...
2
1464
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 directly with the same results. When you drag and drop the componet in design time it shows the tooolbar. Any advice on what I am doing wrong would be appreciated. Regards,
3
1628
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 there. Any suggestions would be appreciated.
5
13348
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 http://mghospedagem.com/images/controlpanel.jpg instead of http://mghospedagem.comhttp://mghospedagem.com/images/controlpanel.jpg As u see, there's the website URL before the image URL.
0
8330
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
7355
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6178
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4334
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2749
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.