Click here to Skip to main content
15,890,995 members
Please Sign up or sign in to vote.
2.14/5 (3 votes)
See more:
Hi all

In my application i am modifying one part of app.config file using vb.net code.
but when the line is executing it's popping one dialog box, where i am mannually pressing Alt+A then only the changes happening in the app.config file.

Can anyone please tell me how to fire that keypress automatically.

Thank you
Posted

1 solution

use this SendKeys.SendWait("%{A}")

or this
VB
Dim wsh, MyKey
wsh = CreateObject("Wscript.Shell")
wsh.SendKeys("%{A}")
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900