Bill said:
Is it possible to make a user control sizable, so that when the program is running, it can be resized?
I guess you mean giving the user ability to resize a control.
Hmmm...
The first thing I though of...
Make a new panel lets say size 50x20 px, with a border so you can see it. In the panel create a button slightly smaller, lets say
48x18 px. Anchor the button on all four sides to the panel.
Now for the event handlers:
(On mouse down on the panel)
resising = true;
note the mouse position.
(on mouse move on the panel)
if resizing is true
start resizing the panel depending on how much the mouse poition changed
(on mouse up)
if resizing
resizing = false;
Obviously I didnt test this. This is just what I thought of, but you could try this. Also, if you need any clarification, ask,
I'll be happy to help.
Just in case you meant resizing the button from with the code.
yourButton.Width = 50;
yourButton.Heigh = 20;
Hope this helps.
Nick Z.