⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 4262.html

📁 VB技巧问答10000例,是一个教程
💻 HTML
字号:
<html>
  <head>
    <title>Re: 如何在Run-time时动态产生Control</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Re: 如何在Run-time时动态产生Control</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by <a href="mailto:rongjyi@ms1.hinet.net">ㄚ吉</a> on July 30, 1998 at 20:25:13:<p>
In Reply to: <a href="4258.html">如何在Run-time时动态产生Control</a> posted by Aaron Chiang on July 30, 1998 at 17:14:37:<p>
: 假设我在Form中放置一个TextBox与Button,按下Button时读取TextBox的数值,并依据TextBox的数值,动态产生相同个数的CheckBox在Form上<p>首先将checkbox的index设为0<p>private sub button_click()<br>   dim i as integer,j as integer <br>   i =  int(val(textbox.text))<br>  if i> 0 then<br>     for j=1 to i step 1<br>        load checkbox(j)<br>       with checkboc(j)<br>          .visibled=true<br>          .top=nnnn<br>          .left=nnnn<br>      end eith<br>    next j<br> endif<br>end sub<p>ps:执行时只能click button一次.....为啥?  自己想想
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 4262-->
</ul><!--end: 4262-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

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