Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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?
Can't afford to be neutral on a moving train...
Posted

Thanks, the APIs worked great.

 


	[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 );

 


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

 

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

Can't afford to be neutral on a moving train...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...