Dim DialogB As New DialogB()
This works great, but how can I access the main form's controls (i.e. frmRedem.lstBox.SelectedIndex) from the dialog box? If I use the same technique, the program will not start, and the help file's suggestion to use ParentForm does not work! I am using Windows XP.
Public Sub GetParentText() Dim x as String x = CType(Me.ParentForm, Form1).Text End Sub
Dig deeper on Win Development Resources
Related Q&A from Dave Ranck
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.