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

Sendkeys ctrl f

Status
Not open for further replies.

Vec

IS-IT--Management
Jan 29, 2002
418
US
CTRL F
You know, when you want to search a webpage or doc for a certain string, you press and holf ctrl then press f
How do I code this using sendkeys? -
teklogo.gif

 
A quick check of MSDN keyword "SendKeys" shows to use

SendKeys "^F"

If you choose to battle wits with the witless be prepared to lose.

[cheers]
 
Thanks foada but I tried that already, I need it to be in a command button so when pressed, opens the search function.

Maybe I am not applying it properly. You see it is for a web browser, I have a web page displayed in a WebBrowser1 like this:

Private Sub Form_Load()
WebBrowser1.Navigate "End Sub

I need users to be able to press a command button and bring up the page search function that you normally access by using CTRL F.
AS I mentioned I already tried this:

Private Sub cmdsearch_Click()
SendKeys "^F"
End Sub
-
teklogo.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top