>How can I do to resize a textbox or any other control manually at run time (like resize a form)?
>
ôi, Emerson
This is how I would approach the problem (keep in mind I've never done this, it's just ideas for an exploration):
1) put a shape under the resizable object a bit wider and taller than the object in order to draw a border around the object
2) when the shape receives a MouseDown Event it means the user started a resize operation
3) trap MouseUp and MouseMove Events so that a resizing operation can be monitored (an obvious issue to be addressed: if the user moves the mouse out of the shape area which control receives this events? I believe the mouse events must be trapped by the form): the MouseMove event leads to a size recalculation (with auto-redraw for feed-back), the MouseUp to the end of the resize operation.
Best way of doing, er, trying this is to build a container for the shape and the resizable object.
bye
----------------------------------
António Tavares Lopes