Could you clarify what you want to do a little more?
Do you mean allow the user to resize a control like you might as a 'developer' in design mode on a form?.
If you do I expect you could either mimick the windows process (with the little squares), which sounds horribly complicated....or
Perhaps allow the user to right click on a control, give them an option to 'Size this control', then setting a flag which stays set until the user selects 'Finish sizing this control' or until the control loses focus. Whilst the SizingFlag is set you could trap any ctrl-cursor or alt-cursor keypresses and change the size of the current control.
I mentioned the ctrl or alt keys because you may also want to allow the user to move the control also.
All this sounds like a lot of hard work. Could you not resize control to fit the size of the window and allow the user to change the size of the form.....or
Write an auto-resize routine for the control to take as little or as much space as YOU want. Give the user the option of resizing on demand (you could even give them different type of resize...i.e. Small, Large, Wide, Tall, Narrow etc.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.