This topic is now archived and is closed to further replies.


c# control creation problem...

Recommended Posts

xyz    100
Hi, I''m trying to create a panel control with the ability to automatically include owner-drawn buttons... Just to get the idea: I''m trying to do something simliar to Oulook 2003 Panels (where the owner-drawn buttons are the ones saying: Mail, Calendar, Contacts, etc). To include these buttons I thought of a CollectionBase to represent the button collection, but I''m not sure of how to do it as I need complete control over each button in the panel (change their sizes when the main panel is resized, change their location to make sure they always stick to the ground, etc). Here is the code I''ve made, if you could just have a look (please!), and advise me... I would really appreciate: XPanel.cs XButton.cs Thanks

Share this post

Link to post
Share on other sites