Click here to Skip to main content
16,018,114 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Help files using Notepad Pin
Christian Graus30-Jun-05 18:35
protectorChristian Graus30-Jun-05 18:35 
GeneralRe: Help files using Notepad Pin
Dave Kreskowiak1-Jul-05 3:22
mveDave Kreskowiak1-Jul-05 3:22 
GeneralRe: Help files using Notepad Pin
rswipe3-Jul-05 9:06
rswipe3-Jul-05 9:06 
GeneralRe: Help files using Notepad Pin
Anonymous6-Jul-05 6:59
Anonymous6-Jul-05 6:59 
GeneralRe: Help files using Notepad Pin
rswipe6-Jul-05 16:49
rswipe6-Jul-05 16:49 
GeneralVB.NET Using SendKeys to invoke Find Dialog of AxWebBrowser control Pin
Anonymous30-Jun-05 11:03
Anonymous30-Jun-05 11:03 
GeneralRe: VB.NET Using SendKeys to invoke Find Dialog of AxWebBrowser control Pin
rudy.net1-Jul-05 18:30
rudy.net1-Jul-05 18:30 
GeneralRe: VB.NET Using SendKeys to invoke Find Dialog of AxWebBrowser control Pin
Anonymous2-Jul-05 20:13
Anonymous2-Jul-05 20:13 
Hi, thanks for your reply...

I have tried AppActivate before using send keys, but since the AxWebBrowser control is embedded in the Main form along with other controls, I am having trouble setting focus or locating the process id of the control. For instance if i try something like the following:

    <br />
Private Sub mnuEditFind_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuEditFind.Click<br />
    Dim pi As New Process<br />
    pi = Process.GetProcessById(AxWebBrowser1.HWND)<br />
    AppActivate(pi.Id)<br />
    SendKeys.Send("^F")<br />
End Sub<br />


I recieve an "Unspecified error". I am not having trouble giving focus to the Main form itself. I have tested SendKeys by sending "%{F4}" in code, and as expected, it closed the window.

I need to find a way to activate or set focus to the AxWebBrowser control before using SendKeys. If I click on the AxWebBrowser control when my application is running, I can easily press Ctrl-F on the keyboard and the Find Dialog will popup. But I wish to put this as a menu/toolbar option since the main user's of this application won't be very "computer savvy" D'Oh! | :doh:

Any other suggestions? Is there some way to send a message in code or have the AxWebBrowser control listen to key events?? Confused | :confused:

Thanks!
GeneralRe: VB.NET Using SendKeys to invoke Find Dialog of AxWebBrowser control Pin
Anonymous6-Jul-05 7:09
Anonymous6-Jul-05 7:09 
GeneralObtain a handle to a label in a container Pin
Abhishek Karnik30-Jun-05 10:44
Abhishek Karnik30-Jun-05 10:44 
Generalusing a string variables value Pin
btoyer30-Jun-05 10:31
btoyer30-Jun-05 10:31 
GeneralRe: using a string variables value Pin
Christian Graus30-Jun-05 14:49
protectorChristian Graus30-Jun-05 14:49 
GeneralRe: using a string variables value Pin
btoyer1-Jul-05 5:49
btoyer1-Jul-05 5:49 
GeneralRe: using a string variables value Pin
Christian Graus1-Jul-05 20:23
protectorChristian Graus1-Jul-05 20:23 
GeneralRe: using a string variables value Pin
Dave Kreskowiak2-Jul-05 11:25
mveDave Kreskowiak2-Jul-05 11:25 
GeneralAnyone know how to get more control over the appearance, size, etc of an active movie window Pin
Joey Picerno30-Jun-05 9:51
Joey Picerno30-Jun-05 9:51 
GeneralRe: Anyone know how to get more control over the appearance, size, etc of an active movie window Pin
Dr_Lomax12-Jul-05 1:42
Dr_Lomax12-Jul-05 1:42 
GeneralTwo WebBrowsers Question Pin
Anonymous30-Jun-05 9:28
Anonymous30-Jun-05 9:28 
GeneralTwo WebBrowsers Question Pin
Anonymous30-Jun-05 10:02
Anonymous30-Jun-05 10:02 
GeneralRe: Two WebBrowsers Question Pin
rwestgraham30-Jun-05 12:42
rwestgraham30-Jun-05 12:42 
Generalcombobox items question Pin
Joey Picerno30-Jun-05 9:03
Joey Picerno30-Jun-05 9:03 
GeneralRe: combobox items question Pin
Anonymous30-Jun-05 9:14
Anonymous30-Jun-05 9:14 
GeneralRe: combobox items question Pin
Joey Picerno30-Jun-05 9:49
Joey Picerno30-Jun-05 9:49 
GeneralMoving to a row in a dataset Pin
dptalt30-Jun-05 8:38
dptalt30-Jun-05 8:38 
GeneralRe: Moving to a row in a dataset Pin
Anonymous30-Jun-05 9:36
Anonymous30-Jun-05 9:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.