|
-
Jun 1st, 2002, 02:42 AM
#1
[RESOLVED] Get Control Name
Get all controls on a form.
Last edited by Nightwalker83; Dec 13th, 2007 at 07:46 PM.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Jun 1st, 2002, 02:57 AM
#2
Hey NightWalker, Try:
VB Code:
Private Sub Command1_Click()
Dim cntl As Control
For Each cntl In Controls
List1.AddItem cntl.Name
Next
End Sub
-
Jun 1st, 2002, 02:59 AM
#3
Frenzied Member
VB Code:
For Each Ctl In Me.Controls
Debug.Print Ctl.Name
Next
-
Jun 1st, 2002, 03:01 AM
#4
IF you had to use the example in ur post, the sytax is:
TypeOf Control Is
Bruce.
-
Jun 1st, 2002, 03:02 AM
#5
Originally posted by Bruce Fox
Hey NightWalker, Try:
VB Code:
Private Sub Command1_Click()
Dim cntl As Control
For Each cntl In Controls
List1.AddItem cntl.Name
Next
End Sub
The example uses that code
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Jun 1st, 2002, 03:10 AM
#6
Originally posted by Nightwalker83
The example uses that code
hehe, No it dosn't.... look closely 
(Hint: If Then........)
-
Jun 1st, 2002, 03:14 AM
#7
Originally posted by Bruce Fox
hehe, No it dosn't.... look closely 
(Hint: If Then........)
Yeah but still does the same job and doesn't change the size or speed of the app
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Jun 1st, 2002, 03:15 AM
#8
Oh, hang on... I thought u were posting a problem!
That is why I sent those examples.. Yes, your code does
work the way u have it
-
Jun 1st, 2002, 03:16 AM
#9
Originally posted by Nightwalker83
Yeah but still does the same job and doesn't change the size or speed of the app
Speed, Oh yes it does....
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
|