Add resources to a control subclass


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I'm sub classing a toolstrip and want to preadd some buttons (just like you do on you RichTextboxToolStrip control). I can add the designer file, with the code that adds the toolstripbuttons/combos/etc. but can't figure out how to add the resource file with the images for the buttons. If I add a resource file, I have to add a dependency manually to the main file. If I add resources to it via the property sheet, it gives me a warning about corrupting the form/control.



So, how do I add a resource to the control?
Reply
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Hehe, everyone has to learn.  It's better to ask and learn from the answer than to bang your head for 2 days trying to figure it out Smile
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search