19476.html

来自「VB技巧问答10000例 VB技巧问答10000例」· HTML 代码 · 共 23 行

HTML
23
字号
<html>  <head>    <title>Service 本来就不应该有 form</title>  </head>  <body bgcolor="#FFFFFF" vlink="#808080">    <center>      <h1>Service 本来就不应该有 form</h1>    </center><hr size=7 width=75%><hr size=7 width=75%><p>Posted by <a href="mailto:ask@vbqa.com">小吴</a> on September 30, 1999 at 08:35:59:<p>In Reply to: <a href="19457.html">救救我</a> posted by Vincent on September 29, 1999 at 21:19:19:<p>你有见过那个 Service 有 form 的吗? Service 如同 Unix 的 Daemon,是没有 User Interface 的。若你的 service 有 visible 的 form,则当 user logoff 时,Windows 会送程式结束的讯息给该程式,那么你的 service 就结束了。所以记得使用 NT Service OCX 写 Service 时,form 要设为 Visible=False, ShowInTaskbar=False<br><br><hr size=7 width=75%><p><a name="followups">Follow Ups:</a><br><ul><!--insert: 19476--></ul><!--end: 19476--><br><hr size=7 width=75%><p></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?