Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Yet another Exception Error...
Message
From
17/08/2004 01:10:47
 
 
To
16/08/2004 22:00:25
Czarina Joyce Villanueva
Innovision Systems International
Manila, Philippines
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00933470
Message ID:
00933743
Views:
21
I don't know how to get an ImageList without doing it through the IDE, sorry.

I'm still not sure why your code isn't working ... when I add the image in the base button class (by using the System.Drawing.Image.FromFile), and then compile my button class, and then add that button to the ToolBox and then drop that button on a Form or a UserControl, the binary code for that Image is stored in the .resx file and the IDE generates the statement:
this.MyButton.Image = ((System.Drawing.Image)(resources.GetObject("MyButton.Image")));
Unless ... are you asking how to do this in code? IOW, are you not using the IDE to design your UserControl? If that's the case, then I don't have a clue how to do that. Sorry.

~~Bonnie


>Bonnie,
>
>Is there a way of using ImageList control in my base class code instead of System.Drawing.Image.FromFile...? I don't know how to do it because we don't have UI in during class design.
>
>With regards to your question, it's actually during runtime pointing to the This.Image = blahahaha... line of code which is a base class code.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform