Taskbar/Third Party Program

solus

Freshman
Joined
Apr 5, 2003
Location
Phoenix
I have a console program that runs as a type of server written by some one else. The fact that it sits in my taskbar is kind of irritating. Is there any way, using c#, to write a third party program that'll hide it from the taskbar and and my desktop entirely?
 

solus

Freshman
Joined
Apr 5, 2003
Location
Phoenix
Thanks, the APIs worked great.

C#:
		[DllImport("user32.dll",EntryPoint="FindWindow")]
		private static extern IntPtr FindWindow( string _ClassName, string _WindowName );

		[DllImport("user32.dll")]
		private static extern uint ShowWindow( IntPtr hWnd, int nCmd );

C#:
			IntPtr wp = FindWindow( null, "Window Name" );
			ShowWindow( wp, 0 );

0 to hide and 1 to show again. For future reference ;D
 
Top Bottom