Article View: cn.bbs.comp.program
Article #1955Re: ������һ������������:
From: Henry Jia
Date: Thu, 12 Mar 1998 00:00
Date: Thu, 12 Mar 1998 00:00
43 lines
1680 bytes
1680 bytes
First add a command button and a textbox to the form , then set the
textbox's index to 0 this tell vb you will create a control array. Then add
the code as following:
Option Explicit
Dim mnIndex As Integer
Private Sub Command1_Click()
'- Create one text box
Load Text1(mnIndex)
'- Set its properties
With Text1(mnIndex)
'- move to a new position
.Left = Text1(mnIndex - 1).Left + Text1(mnIndex - 1).Width + 100
'- This must be added, because when load it's visible is false
.Visible = True
End With
mnIndex = mnIndex + 1
End Sub
Private Sub Form_Load()
mnIndex = 1
End Sub
Hope this help and good luck!
���� wrote in message <980311.yCiE1$PBBS@bbs.ustc.edu.cn>...
>
>����ѧVB���,
>��ͨ��һ����Ŧ���������ı���(TextBox)
>�����¾Ͳ�����ı���,
>���Dz�֪������ʲô����,�����˰����create,
>add,load�����İ���,���һ�����...
>
>����ָ��,лл��!!!...
>
>
>����
>
>--
>�� ��Դ: �й�ƴ�BBSվ [bbs.ustc.edu.cn]
Technical Details
Message-ID:
<6e7maf$1f8@news.zhanjiang.gd.cn>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<980311.yCiE1$PBBS@bbs.ustc.edu.cn>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: fc86e,2f985180097ed903 X-Google-Attributes: gidfc86e,public From: "Henry Jia" <jiah@usa.net> Subject: Re: ������һ������������: Date: 1998/03/12 Message-ID: <6e7maf$1f8@news.zhanjiang.gd.cn> X-Deja-AN: 333202429 References: <980311.yCiE1$PBBS@bbs.ustc.edu.cn> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: ZJDCB Newsgroups: cn.bbs.comp.program