Many a question about text

zingbats

Newcomer
Joined
Aug 11, 2003
Messages
8
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.
 
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.
 
Back
Top