Click here to Skip to main content
16,017,907 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi dear can anybody tell me what doevent does in vb.net.

Is there any concern of doevent with "window
despatch message and translate message"


[edit]Spurious code block removed - OriginalGriff[/edit]
Posted
Updated 29-Jun-11 1:00am
v4
Comments
OriginalGriff 29-Jun-11 6:56am    
Sorry, but your question does not make a lot of sense.
Use the "Improve question" widget to edit your question and provide better information.

1 solution

DoEvents is provided as a stopgap measure to make it easier to yield from the UI thread so that painting can occur. Basically, as threading is a complicated topic (and was effectively impossible in the version of classic VB it was introduced in), DoEvents allows the UI to remain responsive while performing processing that other languages would require you to delegate to other threads to keep the UI responsive.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900