vb.net中的doevent请告诉我 [英] doevent in vb.net please tell me

查看:130
本文介绍了vb.net中的doevent请告诉我的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的人可以告诉我doevent在vb.net中做什么.

doevent是否与"window
"有关 发送邮件和翻译邮件"


[edit]删除了伪代码块-OriginalGriff [/edit]

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]

推荐答案

DoEvents是一种权宜之计,可使其更容易从UI线程中产生,以便进行绘制可能发生.基本上,由于线程是一个复杂的主题(在引入它的经典VB版本中实际上是不可能的),因此DoEvents允许UI在执行其他语言要求您委派给其他线程以保持UI的处理时保持响应性响应.
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.


这篇关于vb.net中的doevent请告诉我的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆