kanak Posted January 19, 2005 Posted January 19, 2005 hi all i want to know is there a information message box ... which does not block the execution of the program..... i want a message box which does not reqires a user input but just to gives a alert of the information... and destroys itself... i tried creating a window form like message box ... and used a thread to display to form for 5 seconds .. i used to following coding in the button click event dim f2 as new form2 f2.show() f2.textbox1.text="Please wait for 5 seconds" thread.currentthread.sleep(5000) f2.close() but the problem is the form2 is getting hanged .. and is not displayin the information in the text box.. so anyone can help me with a message box which does not have this problem. .... as if i use a messagebox is that till i click the "ok" button in the message box it wont execute the nex step .... so anyone please help Quote
Rick_Fla Posted January 19, 2005 Posted January 19, 2005 I got your code working by adding a simple application.doevents dim f2 as new form2 f2.Show() f2.TextBox1.Text = "Please wait for 5 seconds" Application.DoEvents() thread.currentthread.sleep(5000) f2.close() Quote "Nobody knows what I do until I stop doing it."
kanak Posted January 20, 2005 Author Posted January 20, 2005 hey thanks a lot .. i love these forums for the knowledge upgrade..thanks a lot Quote
Rick_Fla Posted January 20, 2005 Posted January 20, 2005 Anytime, enjoy! Quote "Nobody knows what I do until I stop doing it."
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.