Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21866

Form name held in variable?

$
0
0
Is it possible to use a variable to use a form's name? For example, let's say I have a form called "Form1" and a variable called strForm. Can I use something like the following to control things on the form?:

strForm = Me.Name
strForm.Caption = "This would set the new caption of Form1"

Is something like that possible? Just doing a quick test in VB6 I'm seeing "strForm.Caption" isn't possible to be used, but there might be another way to control items using a variable in place of the form?

Viewing all articles
Browse latest Browse all 21866

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>