Jump to content
Xtreme .Net Talk

is threre a message box which does not block the execution of the program


Recommended Posts

Posted

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

Posted

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()

"Nobody knows what I do until I stop doing it."

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...