Hi Guys,
I've run into a bit of a problem.. I am unsure as to how many people know how "IRC" Servers work here but basically, i'll explain
We are re-creating an IRC Client we made for our Chat site in VB.NET originally vb6
We have serveral different forms but the main problme we are having at the moment is
FrmMain is where you login to the servers, it grabs your data from our MySQL database such as "Nick, Gender, Font" etc. Then proceeds with connection to IRC server on Raw 001 we know the connection to the IRC server has been established... so therefore we open up FrmAuth which in this case they can see roomlist etc. We are unable to get FrmAuth to load probably.
We originally had this working opening up FrmAuth before the connection to IRC server has been established.. This really is no good for us causes alot of errors etc.
So when we use just simply "me.show()" the form loads but freezes we tried doing
however, this didnt work in which I assume that is because the "FrmAuth" hasn't yet loaded the GUI thread therefore there is no Thread to invoke so we tried
This didn't work either i assume you cannot access another forms Invoke method..??
we are receiving the error A first chance exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll which i assume has something to do with it but not quite sure..
So my question comes down to the fact of, how do we open up FrmAuth without it freezing? Is there a way to access the invoke method on another form?
Thank you
I've run into a bit of a problem.. I am unsure as to how many people know how "IRC" Servers work here but basically, i'll explain
We are re-creating an IRC Client we made for our Chat site in VB.NET originally vb6
We have serveral different forms but the main problme we are having at the moment is
FrmMain is where you login to the servers, it grabs your data from our MySQL database such as "Nick, Gender, Font" etc. Then proceeds with connection to IRC server on Raw 001 we know the connection to the IRC server has been established... so therefore we open up FrmAuth which in this case they can see roomlist etc. We are unable to get FrmAuth to load probably.
We originally had this working opening up FrmAuth before the connection to IRC server has been established.. This really is no good for us causes alot of errors etc.
So when we use just simply "me.show()" the form loads but freezes we tried doing
VB.NET:
Me.Invoke(New Del(AddressOf me.show))
VB.NET:
FrmMain.Invoke(New Del(AddressOf me.show))
This didn't work either i assume you cannot access another forms Invoke method..??
we are receiving the error A first chance exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll which i assume has something to do with it but not quite sure..
So my question comes down to the fact of, how do we open up FrmAuth without it freezing? Is there a way to access the invoke method on another form?
Thank you