We help IT Professionals succeed at work.

Is there a SHIFTDOWN in VB.NET for the SendKeys.SendWait method ?

Hi,

Is there a VB.NET parameter for the SendKeys.SendWait function which will press the shift key down and keep it down until released by another SendKeys call?

I cannot seem to find the .NET way of sending {SHIFTDOWN} or {SHIFTUP}.

TIA.
Wee.
Comment
Watch Question

I believe send shift willbe

Sendkeys.Send("+{END}") ' Shift+End

Sending keystrokes is *very*
unreliable, and usually bad programming practice
Mike TomlinsonHigh School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher
CERTIFIED EXPERT
Top Expert 2009

Commented:
"and keep it down until released by another SendKeys call?"

No.  With SendKeys there isn't any way to KEEP it down until you specify it be released.

To do that you would need to use Win APIs...

Author

Commented:
Thanks your comments, I understand sendkeys is dubious coding practice.
Can you suggest another method of ensuring an access database does not launch its opening code when opened by OPENDATABASE method?

Author

Commented:
No, but the solution to this problem can be found here:

http://blogs.msdn.com/robgruen/archive/2004/04/15/114020.aspx

The code will need tweeking to get a shiftdown experience but it is easy enough to do.
Asker found solution, was paritially assisted by the no answers.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.