I want to send { and } signs to the Active window in Visual Basic 2010.But the problem is when we send a key like “Backspace” we send it as “{BS}”.So it also contains the { & } signs.
Therefore when we send { and } signs nothing happen.Anyone help me…
I want to send { and } signs to the Active window in Visual
Share
From
http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.aspx
Basically, you need to double up the braces to escape them, Like
to send a
{opening brace, andto send a closing brace. It may not be obvious at first glance, but that’s just enclosing a brace character within braces. This is consistent with other escape sequences, such as using
\\in C/C#/etc to indicate a literal\instead of a string formatting character.