ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] °ÊºA·s¼W±±¨î«á«ç»òIJµo¨Æ¥ó

¥i¥H¬Ù²¤theTextBox
ª½±µSet AA(I).C_TextBox = Me.Controls.Add("Forms.TextBox.1", "TextBox" & I, True ...
linyancheng µoªí©ó 2016-4-11 13:30

¦¹³Bµ´¹ï¤£¥i¥H°½Ãi±N theTextBox ¬Ù²¤¡A
¦pªG¤©¥H¬Ù²¤¦¨¡G
  1.         '  Set theTextBox = Me.Controls.Add("Forms.TextBox.1", "TextBox" & I, True)
  2.         '  Set AA(I).C_TextBox = theTextBox
  3.         Set AA(I).C_TextBox = Me.Controls.Add("Forms.TextBox.1", "TextBox" & I, True)
½Æ»s¥N½X
±µ¤U¨Óªº°õ¦æ±N·|¥X²{
  1. °õ¦æ¶¥¬q¿ù»~ 91¡G
  2. ¨S¦³³]©wª«¥óÅܼƩΠWith °Ï¶ôÅܼÆ
½Æ»s¥N½X
©Ò¥H GBKEE ¤j¤j­ì¥»ªº³]©w»P¦Ò¶q¬O¥¿½TµL»~»~ªº¡G
  1.         Set theTextBox = Me.Controls.Add("Forms.TextBox.1", "TextBox" & I, True)
  2.         Set AA(I).C_TextBox = theTextBox

  3.         With theTextBox
  4.                 .
  5.                .
  6.         End With
½Æ»s¥N½X

TOP

¦^´_ 4# linyancheng
°£«D§A¤£¨Ï¥Î theTextBox «Å§i¤§ÅܼơA¦Óª½±µ±N¥¦¼g¦¨¡G
  1.     For I = 1 To 3
  2.         '  Set theTextBox  = Me.Controls.Add("Forms.TextBox.1", "TextBox" & I, True)
  3.         '  Set AA(I).C_TextBox =theTextBox     '  ¥i¥H¬Ù²¤ theTextBox
  4.         Set AA(I).C_TextBox = Me.Controls.Add("Forms.TextBox.1", "TextBox" & I, True)
  5.         
  6.         '  With theTextBox
  7.         With AA(I).C_TextBox
  8.                 .Left = 50
  9.                 .Top = K
  10.                 K = .Top + .Height + 18
  11.         End With
  12.     Next I
½Æ»s¥N½X
¤è¥i¡C

TOP

        ÀR«ä¦Û¦b : ¦Û¤v®`¦Û¤v¡A²ö¹L©ó¶ÃµoµÊ®ð¡C
ªð¦^¦Cªí ¤W¤@¥DÃD