I have been working on this for a while not finding anything.

I have a form that needs to send a ketstroke, but I used:

SendKeys.Send("{Ctrl}" + "{SHIFT}" + "{]}")

But that Did not work.
Y? IDK.

can someone please help

Recommended Answers

All 4 Replies

To specify keys combined with any combination of the SHIFT, CTRL, and ALT keys, precede the key code with one or more of the following codes:
Key Code
SHIFT +
CTRL ^
ALT %


To specify that any combination of SHIFT, CTRL, and ALT should be held down while several other keys are pressed, enclose the code for those keys in parentheses. For example, to specify to hold down SHIFT while E and C are pressed, use "+(EC)". To specify to hold down SHIFT while E is pressed, followed by C without SHIFT, use "+EC".

send keys has a key code like honey61399 said..u can't write it straight..
see this site

So I am guessing that I can't use the Bracket keys as a send key suck as a combo like:
CTRL+SHIFT+]
Because I don't see anything that says something about "[" "]" those keys.

try this it will work
"^+]"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.