• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

vb.net的doevent请告诉我

用户头像
it1352
帮助1

问题说明

亲爱的人可以告诉我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]

正确答案

#1
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.

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /reply/detail/tanhcfggbc
系列文章
更多 icon
同类精品
更多 icon
继续加载