Feb 21, 2003 #1 vaat MIS May 14, 2002 27 NL Does anyone here know how I can implemend a two-dimensional array of shape controls. When i make an control array it is one-dimensional. Does anyone have some sample code ?
Does anyone here know how I can implemend a two-dimensional array of shape controls. When i make an control array it is one-dimensional. Does anyone have some sample code ?
Feb 21, 2003 #2 vb5prgrmr Programmer Jul 5, 2002 3,617 US Don't think that is possible. Directly anyways. As an Object maybe. Good Luck Upvote 0 Downvote
Feb 21, 2003 Thread starter #3 vaat MIS May 14, 2002 27 NL what do you mean as an object maybe ? Upvote 0 Downvote
Feb 21, 2003 #4 vb5prgrmr Programmer Jul 5, 2002 3,617 US I have never tried it but lets see... Ah... Hmmm... this seems to work [tt] Private Sub Form_Load() Dim O(1, 1) As Object Set O(0, 0) = Text1 Set O(0, 1) = Text2 Set O(1, 0) = Text3 Set O(1, 1) = Text4 O(0, 0).Left = 0 O(0, 0).Top = 0 O(0, 1).Left = 0 O(0, 1).Top = O(0, 0).Height + 30 O(1, 0).Left = 0 O(1, 0).Top = O(0, 1).Top + O(0, 1).Height + 30 O(1, 1).Left = 0 O(1, 1).Top = O(1, 0).Top + O(1, 0).Height + 30 End Sub [/tt] add 4 text boxes (not array (text1,text2,text3,text4)) and run. Good Luck Upvote 0 Downvote
I have never tried it but lets see... Ah... Hmmm... this seems to work [tt] Private Sub Form_Load() Dim O(1, 1) As Object Set O(0, 0) = Text1 Set O(0, 1) = Text2 Set O(1, 0) = Text3 Set O(1, 1) = Text4 O(0, 0).Left = 0 O(0, 0).Top = 0 O(0, 1).Left = 0 O(0, 1).Top = O(0, 0).Height + 30 O(1, 0).Left = 0 O(1, 0).Top = O(0, 1).Top + O(0, 1).Height + 30 O(1, 1).Left = 0 O(1, 1).Top = O(1, 0).Top + O(1, 0).Height + 30 End Sub [/tt] add 4 text boxes (not array (text1,text2,text3,text4)) and run. Good Luck
Feb 21, 2003 Thread starter #5 vaat MIS May 14, 2002 27 NL thanxs for all you're wisdom Upvote 0 Downvote