Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Missing Ctrl+A?

Status
Not open for further replies.

ReWeFe

MIS
Mar 30, 2003
25
US
Hello all,

having written a small single document application in VB6, with a few text entry fields, I see that Ctrl-C, Ctrl-V, Ctrl-X is working to Copy, Paste and Cut text without adding any code.

There's even a pop-up (context) menu with the option to select all text.

But please enlighted me folks, why has the "standard "keyboard shortcut to select all text, Ctrl+A, not been implemented or why is it not working?

What is the easiest way to implement this shortcut? I mean obviously the code the select all text in a text field is already in all applications with at least one text field. Is there any way to assign a shortcut to that existing code?

Thanks a bunch...
 
CTRL-A works in the richtextbox. I don't know if if is a 'feature' for it to not work in the standard textbox, but I can't get it to work.

I'm sure you could trap the CTRL-A char. sequence and build the code to select all. Let me know if this is the route you want to take and I will see if I can whip something up...

Don
 
Sorry for axing a maybe simple question.

But how do I add a Rich Text Box?


Thanks
 
No such thing as a 'simple question'

In VB Development environment,
CLick Project/Components

Scroll til you see 'Microsoft RichTextbox COntrol 6.0',
check it and it will add rtb control to your toolbox.

Then add it to a form like the standard textbox

Don
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top