473,387 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

AppActivate c# vb.net equivalent

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
Aug 2 '06 #1
1 2811
"André" <An**@discussions.microsoft.comschrieb:
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/>

Aug 2 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: John | last post by:
Is there an equivalent of COM on Linux that I can get through Python. My need is to have some sort of language independent component framework. I can think of CORBA but I have to have a server...
7
by: Tim Conner | last post by:
Hi, I am an ex-delphi programmer, and I having a real hard time with the following simple code (example ): Which is the equivalent to the following code ? var chars : PChar; sBack, s :...
1
by: Alex | last post by:
Can I find a Function like AppActivate of VB.net in C#?
1
by: Lars Gaarde | last post by:
I need to activate another application, after clicking in a right click menu/context menu in my application. Problem is that the other application doesn't get activated and brought to the front...
0
by: Austin | last post by:
Hello: I have written a very simple vb program (using the new .net interface). I have a website to which I must upload many files. The filenames are incremented in such a way that a simple...
14
by: grid | last post by:
Hi, I have a certain situation where a particular piece of code works on a particular compiler but fails on another proprietary compiler.It seems to have been fixed but I just want to confirm if...
1
by: scottt | last post by:
Hello All, I am trying to use SendKeys to send some keystrokes to another application. I am using the VB Runtime reference to use the following line in my C# program: ...
1
by: André | last post by:
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...
5
by: diSangro | last post by:
Hello Community, I have a question : why , if I try to use AppActivate applied to cmd.exe it doesn't work? My purpose is to run a VB script from Excel which opens a Telnet or an ftp ...
2
by: =?Utf-8?B?bXIgcGVhbnV0?= | last post by:
I want to activate an application (Excel) in code. If I reference microsoft.visualbasic, I could use: Interaction.AppActivate("Microsoft Excel"); But I wold rather use a native C# approach. I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.