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
This was first published in March 2003