Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Embedded .jpg
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00774923
Message ID:
00774946
Views:
19
I have been using code like this in an event handler on the form to get to those embedded resources:

Bitmap bmp = new Bitmap(this.GetType(),"InspectionForm.gif");

P.S. This article from Chris Sells pretty well tells you everything you need to know about resources on winforms: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/html/winforms02202003.asp

>I've add some .jpg's to my project as an "embedded resource". I'm running into some problems using those.
>
>I'm not sure what to type to use for the "class to extract the resouce" in my Bitmap contructor.
>
>Any help would be appreciated.
>
>Thanks,
>Dan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform