473,508 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5079
"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
7214
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...
1
8827
by: Alex | last post by:
Can I find a Function like AppActivate of VB.net in C#?
1
1587
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
1528
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
2521
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
2639
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
1951
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
10261
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
8902
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
7129
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
7333
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,...
0
5637
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4716
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3194
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1566
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.