T
tylerdurden
Hi.
I want to write application which
1) Get list of windows
2) Change activ window
ad1 I have writen:
Process [] localAll = Process.GetProcesses();
String lista = "Lista procesow\n";
for (int i=0; i<localAll.Length; i++){
if (localAll.MainWindowHandle.ToInt32() == 0) continue;
lista = lista + "\n" + i + "\t:" + localAll.MainWindowTitle;
So I have list of handlers form localAll.MainWindowHandle method.
But what to do next ?
I have tried
Control a = Form.FromChildHandle(localAll.MainWindowHandle);
or
Control a = Form.FromHandle(localAll.MainWindowHandle);
and then
Form f = a.FindForm();
But it's not working. It's only gives not null reference to my program
window.
TIA, Tyler
I want to write application which
1) Get list of windows
2) Change activ window
ad1 I have writen:
Process [] localAll = Process.GetProcesses();
String lista = "Lista procesow\n";
for (int i=0; i<localAll.Length; i++){
if (localAll.MainWindowHandle.ToInt32() == 0) continue;
lista = lista + "\n" + i + "\t:" + localAll.MainWindowTitle;
So I have list of handlers form localAll.MainWindowHandle method.
But what to do next ?
I have tried
Control a = Form.FromChildHandle(localAll.MainWindowHandle);
or
Control a = Form.FromHandle(localAll.MainWindowHandle);
and then
Form f = a.FindForm();
But it's not working. It's only gives not null reference to my program
window.
TIA, Tyler