Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi!

 

I try and make a list of my problems at the end of most days and post them in a grouped post. (to prevent too many posts and I usually figure them out!)

 

First question, I have a mutiline text box with a rightclick menu. I have a copy area and want to make it copy selected text (if there is any selected) and the whole box if there is none selected.

 

As well, in notepad, u resize the window and the txt area resises; in VB, that doesn't happen, how can I set it...

 

 

Regards;

Alex.

  • *Experts*
Posted

You can get the selected text of a textbox using the SelectedText property of the textbox, if you want to copy the whole Text just use the text property.

 

If you want it to resize with the window use the Anchor property of the TextBox, there you can select in which direction the control will stretch.

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...