Hi,
I have a console application (SRMan.exe
) which derives from System.Windows.Forms.Form
. I could be able to hide the form while exe is running. code i used is here
this.Opacity = 0;
this.Size = new Size(0, 0);
this.Location = new Point(-100, -100);
this.Visible = false;
Aslo, configured the form properties ShowIcon
and ShowInTaskbar
to false.
but i could not able to get the Window handle of the of that running process.code i used is here
Process[] process1 = Process.GetProcessesByName("SRMan");
IntPtr pt = process1[0].MainWindowHandle;
Any help is appreciated!
Thanks,
Karim.