R
Ryan
I have some custom forms that contain their own properties and I call them
as such:
Dim myDialog As New myDialogForm
myDialog.mID = 1 ' sets the custom property mID to 1
myDialog.Text = "Here is my dialog"
myDialog.Show()
Now how do I refer to another form however when it's not created as an
instance by my code? I have been calling it by name, as above, assume a
myDialogForm is already open:
myDialogForm.mID = 1
myDialogForm.Text = "Here is my dialog"
This seems odd to me though because I'm not referring to a specific instance
of the dialog form. I've also had unexpected buggy behavior doing this. Is
there a better way to access an existing form?
Thanks,
Ryan
as such:
Dim myDialog As New myDialogForm
myDialog.mID = 1 ' sets the custom property mID to 1
myDialog.Text = "Here is my dialog"
myDialog.Show()
Now how do I refer to another form however when it's not created as an
instance by my code? I have been calling it by name, as above, assume a
myDialogForm is already open:
myDialogForm.mID = 1
myDialogForm.Text = "Here is my dialog"
This seems odd to me though because I'm not referring to a specific instance
of the dialog form. I've also had unexpected buggy behavior doing this. Is
there a better way to access an existing form?
Thanks,
Ryan