I tried this in Visual Studio 2008 with XP and Windows 7:
SendKeys.SendWait("sometext{ENTER}{ENTER}")
This is for opening a file in an open file dialog box. It works on XP with VS2008, but when I try to use Windows 7, it seems that the {ENTER} keys are not passing.
Is there a known issue with this, or am I doing something wrong?
this should work, you can also try \ n:
System.Windows.Forms.SendKeys.SendWait("Hello World{ENTER}Testing\n");
Windows 7. , , , , , (: ). , . Visual Studio .
Right click Visual Studio -> Run As Administrator