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

Visual Basic

 
GeneralRe: Help files using Notepad Pin
Christian Graus30-Jun-05 14:48
protectorChristian Graus30-Jun-05 14:48 
GeneralRe: Help files using Notepad Pin
Dave Kreskowiak30-Jun-05 17:17
mveDave Kreskowiak30-Jun-05 17:17 
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 
Hi,

The subject explains what I would like to do, but here's more detail:

I have a WinForm which contains a TreeView control and a AxWebBrowser control. When a user clicks on a TreeNode a file (placed in TreeNode.Tag) is loaded into the AxWebBrowser control. I have hidden the menus and toolbars of the AxWebBrowser control since they are not meant to be seen by the user and in this particular case, my AxWebBrowser control is used for viewing and searching documents.

Is there a way to show the Find Dialog via SendKeys (Ctrl-F) from a menu option or toolbar from my Main form? I have tried the following code:

Private Sub mnuEditFind_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _<br />
     Handles mnuEditFind.Click<br />
        SendKeys.Send("^F")<br />
End Sub


OR

Private Sub mnuEditFind_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _<br />
     Handles mnuEditFind.Click<br />
        AxWebBrowser1.ExecWB(SHDocVw.OLECMDID.OLECMDID_SHOWFIND, _<br />
        SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_PROMPTUSER)<br />
End Sub


Using either code has no effect. I believe the SendKeys method is sending the message only to the active window which is my Main form. Is there a way around this to make it work?

Any help or guidance would be much appreciated. Thanks!
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 
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 

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.