View Single Post
  #9 (permalink)  
Old 11-10-2007, 01:17 PM
agraham's Avatar
agraham agraham is online now
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

I am afraid your code is dangerous - you are adding an events every time the textbox gets the focus and the user can still select the text box. Try this

Code:
Sub Globals
    
'Declare the global variables here.
 End Sub

Sub App_Start
  Form1.Show
End Sub

Sub cmdShow_Click
  txtReadOnly.Text=txtReadWrite.Text
End Sub

Sub txtReadonly_GotFocus
    txtReadWrite.Focus
End Sub
Reply With Quote