I want a Word application to come to front, see code below:
string caption = wordApp.Caption;
IntPtr handler = FindWindow(null, caption);
SetForegroundWindow(handler);
wordApp.Visible = true;
The errors I got are:
Error CS0103: The name 'FindWindow' does not exist in the current context
Error CS0103: The name 'SetForegroundWindow' does not exist in the current context
I guess I miss a reference even though the compiler does not say so. Am I right?