Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
Is there a simple way to set up controls such as textboxes or listboxes so that the user can click on the border and resize them (like with the form)?
To err is human, to really foul things up requires a computer.
Posted

It´s not so dificult... you just have to inherit from the base control and add this functionality to the control...

 

You can even draw the litle squares around the control but it isn't necessary... you can capture the mouse position on the border of the controls, change the cursor to the apropriate one and set the size property of the control to the mouse position ... easy...

 

Try it like this... it isn't hard! :D

Software bugs are impossible to detect by anybody except the end user.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...