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.
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
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.