zingbats Posted August 12, 2003 Posted August 12, 2003 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. Quote
*Experts* mutant Posted August 12, 2003 *Experts* Posted August 12, 2003 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.