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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have 20 textboxe in form and all

Status
Not open for further replies.

dass

Programmer
Feb 25, 2002
33
0
0
IN
I have 20 textboxe in form and all textboxes are locked so it not support Ctrl+C (copy)
I want to activate the short cut

Note : I dont want to write the same coding in all text boxes

give the solution

 
If you are using an array of textboxes, you can use SELECT CASE and separate the code Mal'chik [bigglasses]
 
You might try something like this:

Dim cntl As Control

For Each cntl In Me.Controls
If TypeOf cntl Is TextBox Then
MsgBox "Textbox: " & ctl0.Name
' do what you want to do to the textbox
End If
Next
Good Luck
------------
Select * from Users where Clue > 0
0 rows returned
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top