Because your sleeps block your MAIN thread, therefor it will not execute till the last sleep is over.. but as u set it to another one (= all work finished) you wont notice the previous ones
hope this helped, but i'm pretty sure this is the problem
User Profile
Collapse
-
Holy crap!
Thanks its working now!
I never heard of the Action class and that is exactly what i needed!
Thank you very much!Leave a comment:
-
Thanks for the reply, but i tried that already (look first post..)
but the problem is that i access a label from another form.. so i need to safely access that class also.. atleast i think because it didn't work when i used delegates.
Im not sure about the design of multiple forms, stupid microsoft needs everything about forms handled on the main thread... which i have problems with..
if someone has any tutorial...Leave a comment:
-
I've been a little busy, but im stuck again with the tutorial which was posted above...
the reason why i get corss thread exception: invalid access is because (i think atleast) i call the change from another thread, because i use asynchronous programming, and so i use a method OnReceive, which is triggered by another thread, so not the main thread where my form was created..
i tried adding the things with event system, but...Leave a comment:
-
thank you very much!
i will definately look at it and let you know if it helped!Leave a comment:
-
Ok that helped me alot, but now i see i got another problem.. :D
i need to access the textbox from my login in my client class to get the name and pass.. how would i do that? :)
thanks for the replies i really appreciate it!
-----------------------------------------------------------------
i fixed that but all this code did NOT help :(
this is what i used: ((Form3)main).l ogin.label4.Tex t = "Invalid...Leave a comment:
-
thanks again, but i am confused now :(
can u please say what i need to put in my login class to get a reference to client(this is not a form!), so i can call at my connect button in the login form:
client.main = this;
this.client.con nect();
and what i need to put in my panel class to get a reference to my client ?
and what is frmPanel ?
and do i need todo Application.run (Panel());...Leave a comment:
-
Hmm it seems that this isn't what i want i think:
i've 3 classes atm
one login form class
one panel form class
one client class for networking(this is not a form!)
so when the application starts up, i want it to show only my login form, i use the client class for networking, and when i have a wrong username/pass i want the text to be set at login class from the client class.. so i need an SAFE instance...Leave a comment:
-
-
how to communicate between several forms?
Hello,
i'm trying to create an application which exists of 2 forms:
a login form and a panel form.
Now the login form speaks for itself, when i press login i send a request to my server and the server returns some things..
I make use of a Form class which inits the form and a Client(Form login) class which do the networking.
Now when i insert a wrong pasword for example, i want it that it... -
No activity results to display
Show More
Leave a comment: