Ok recently I applied a few If statements to a chat program i've made, and now it logs in fine, but i cant send messages or use any menu commands, some menu's work fine but others dont, now I found a way to fix it, by making a MsgBox appear under the new If statement i added, then when i click ok and it logs in, its fixed and everything works, but without it nothing really does, and it seems i need to clicka window that uses the chat window as its parent, any idea's on how i can fix this so i dont need that msgbox?

thanks.