quote:
Originally posted by Luca
this code don't work..
code:
var finestra = Messenger.OpenChat(contatto.Email);
finestra.Close();
I can open the chat window,but I can't to close because this function genrate this error...
code:
Errore: Proprietà o metodo non supportati dall'oggetto (codice: -2146827850)
File: example.js. Linea: 27.
I think that the function Close() close a window,not a CHATwindow....
True, you cannot close a chat window using the Close method since it's not available for the ChatWnd object.
Close it using the Win32 API:
code:
Interop.Call("user32", "DestroyWindow", oChatWnd.Handle);