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

syntax in using the sendkeys( )

Status
Not open for further replies.

clones

Programmer
Oct 1, 2002
11
PH
because i want everytime im setfocus to my text it will select all text pls help me. how to use the sendkeys command and the decimal value i want to afix 2 decimal i my integer text pls give me the syntax of this command
 
I’m not sure I completely understand what you’re asking. Below is an attempt to answer a couple pieces of your question. Does this help?


Private Sub Text1_GotFocus()

Text1.Text = Text1.Text & ".00" ' afix 2 decimal i my integer

Me.Text1.SelStart = 0 ' everytime im setfocus to my text it will select all text
Me.Text1.SelLength = Len(Me.Text1.Text)

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top