|
-
Oct 7th, 2003, 02:37 AM
#1
Thread Starter
Junior Member
Acessing runtime added controls
I wish to access some controls added during runtime.
My codes is as follows.
Private Function AddCombo()
Dim myCombo as ComboBox
Dim line as integar
Set myCombo = frame1.controls.add("Forms.ComboBox.1", "Combo" & line, true)
line = line + 1
End Function
Private Sub CommandButton1_Click()
' This is where i am having problems
'
Dim myCombo as ComboBox
Set myCombo = Form1!("Combo" & line)
myCombo.Visible = False
:
:
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|