I have two nearly identical forms (only one of which is loaded into a Panel at a time.) I want to read the value of an object that appears on both forms using a single command:
(Sample code)
Is there a way to do this?Code:Dim RandomForm as new Form ' I know this doesn't work. If X = 1 then RandomForm = Form1 If X = 100 then RandomForm = Form2 RandomForm.Label1.Text = X ' There is a "Label1" on both forms.
TIA




Reply With Quote
