> Put an image in the resources, compile it as an embedded resource.
>
[quoted text clipped - 9 lines]
>> Has anyone got a vb.net tutorial/website page/whatever, which tells how
>> this is accomplished?
See Windows Forms Tips and Tricks for how to decipher that annoying
reference string (for the classic approach)
The .Net 2.0 resource system however is much easier to use. What are you
using?

Signature
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
>I added my control to the resources, added the toolboxBitMap attribute:
>
[quoted text clipped - 17 lines]
>>> Has anyone got a vb.net tutorial/website page/whatever, which tells how
>>> this is accomplished?
Seth Williams - 17 Mar 2008 15:09 GMT
Definitely using v2.0 - and, for the normal things - I'm fairly used to
it - - just don't fully get it -
I came across your page before, and even after reading it, I'm not 100%
sure - - just to recap
My bitmap is called: MyBitmap.bmp (added to both the project Resources and
the root of the Solution, though I'm not sure I need both - just grabbing at
straws at this point)
My DLL is called: MyControl.DLL
the Namespace is: MyCompany.Controls.MyControl
So, if I used your top syntax, if I understand it correctly, I would think I
would use:
ToolboxBitmap(typeof(MyControl),"MyCompany.Controls.MyControl.MyBitmap.bmp")
Am I on the right track here?
> See Windows Forms Tips and Tricks for how to decipher that annoying
> reference string (for the classic approach)
[quoted text clipped - 23 lines]
>>>> Has anyone got a vb.net tutorial/website page/whatever, which tells how
>>>> this is accomplished?