couch612
Newcomer
I have these declarations in my basMain code module (fMain and fChild are a Windows Forms object)
Public fMain as new fMain()
Public fChild as new fChild()
sub Main
fMain.Show()
End sub
This shows the Main form OK. I have another form that is displayed within the Main form when a menu is clicked. When the ok button is clicked on this new form, it performs the following code:
dim fDialog as new fDialog()
fDialog.Show()
Now within the fDialog module, the OK button event is as follows:
fChild.Show()
The call to fChild.Show seems to be out of scope. Why can't the code in the fDialog module see the fChild object I have declared as Public in the basMain module?
I will also want to make subsequent calls to fChild.Activate() to set the focus to the form. Am I going about this the wrong way?
Thanks in advance and in the meantime I will look up MSDN.
Public fMain as new fMain()
Public fChild as new fChild()
sub Main
fMain.Show()
End sub
This shows the Main form OK. I have another form that is displayed within the Main form when a menu is clicked. When the ok button is clicked on this new form, it performs the following code:
dim fDialog as new fDialog()
fDialog.Show()
Now within the fDialog module, the OK button event is as follows:
fChild.Show()
The call to fChild.Show seems to be out of scope. Why can't the code in the fDialog module see the fChild object I have declared as Public in the basMain module?
I will also want to make subsequent calls to fChild.Activate() to set the focus to the form. Am I going about this the wrong way?
Thanks in advance and in the meantime I will look up MSDN.