Home All Groups Group Topic Archive Search About

AppActivate c# vb.net equivalent

Author
2 Aug 2006 4:13 PM
André
Hi,

c# .net 2005

I have a windows Sendkeys program using webBrowser1 VS.net 2005.  I have to
click a client side message box to say {enter}.

How do I set focus back to the windows form for my sendkeys to send it to
the correct screen?

or, is there a better way then using send keys on a client side pop up
within webbrowser.

Thanks,

Andre

Author
2 Aug 2006 5:56 PM
Herfried K. Wagner [MVP]
"André" <A***@discussions.microsoft.com> schrieb:
> c# .net 2005
>
> I have a windows Sendkeys program using webBrowser1 VS.net 2005.  I have
> to
> click a client side message box to say {enter}.
>
> How do I set focus back to the windows form for my sendkeys to send it to
> the correct screen?

You can actually use 'Interaction.AppActivate' by adding a reference to
"Microsoft.VisualBasic.dll" to your project and importing the namespace
'Microsoft.VisualBasic'.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>