Link to home
Start Free TrialLog in
Avatar of pcaviness
pcavinessFlag for United States of America

asked on

How to communicate between forms

How do you communicate between forms in VB.NET? In VB 6 I am used to typing for example frmMySecondForm.property. How is this accomplished in VB.NET?
Avatar of AzraSound
AzraSound
Flag of United States of America image

You should create instances of the forms using variables, since they are, after all, just classes that should be instantiated that way anyways, e.g.,


Dim f As frmMySecondForm = New frmMySecondForm()
f.Show()
Avatar of pcaviness

ASKER

I know about creating new instances of the forms but I want to be able to change elements on existing forms from other forms. Any suggestions?
ASKER CERTIFIED SOLUTION
Avatar of carloss
carloss

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I had to figure out a few things to get it to work such as making the objects shared. But it worked. Thanks