Hi,
In order to avoid freezing of GUI, I wanted to run method connecting to DB asynchronously. Therefore I have written this:
DelegatLoginu dl = ConnectDB;
IAsyncResult ar=dl.BeginInvoke(null, null);
bool result = (bool)dl.EndInvoke(ar);
But it is still freezing and I do not understand why - I though BeginInvoke assures that method it references is run in another thread. Thank you!