I am attempting to change the caption property of a label on one form from the code in a different form. Easy enough except the name of the label (whose caption property I am trying to change) must be dynamic.
Why won't this work?
Dim MyLabel As Label
Form2.MyLabel.Caption = "something"
After I type "Form2." I am not given MyLabel as a choice. This where the problem starts.
Why won't this work?
Dim MyLabel As Label
Form2.MyLabel.Caption = "something"
After I type "Form2." I am not given MyLabel as a choice. This where the problem starts.