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.