I got a problem with focus on a textbox.
I got a global shortcut for my application to set focus on the textbox of the app.
If i use the shortcut i’m doing this:
this(Window).Activate()
wantedTextbox.Focus()
Keyboard.Focus(wantedTextbox) // just for testing
So it works with e.g. the internet browser, but it won’t work with any text-editor. I get focus on the textbox + activate the Window, but if i write, i write into the notepad/VS…
Would be really pleased if somebody got a clue for my issue.
Okay i solved the problem.
I executed the application with SharpDevelop + C# VS2010Express.
The SharpDevelop compiled .exe didn’t work.
The VS2010 one DID WORK! I don’t know why but that solved my problem.