01-28-2004, 03:28 PM
Hi how are you,
I'm making my own control (UserControl) its a Graphical Button, so I need to limit the size of the button (No sizeable) how I can do this ??
01-28-2004, 08:44 PM
I've never created a UserControl in .NET, so I can't guarantee that my method will work. (but I hear that creating a UserControl in .NET is similar but much simpler than in VB6)
Anyway, use the UserControl's Resize event to enforce maximum/minimum size properties.
01-29-2004, 08:11 AM
I used the resize event, but the Control looks bad when I restore the user size to the maximum size. you know, when the windows was drawn and when I restore the width and height the user control looks not fine, I need something like when you set the Maximum / Minimum properties of a windows form.