code:
ChatWnd.SendMessage("testing");//Send the Message
Interop.Call("User32", "SendMessageW", ChatWnd.Handle, 274, 0xF020);//Minimize the chat window
code:
ChatWnd.SendMessage("testing");//Send the Message
Interop.Call("User32","SendMessageW", ChatWnd.Handle, 16, 0, 0);//Close the Window
That won't show up the window and send your message too
. Chose any of the code above as you wish to close or minimize the window
.
Edited