Hi all,
I have a dialog box with about a dozen combo boxes. How can I access the checked results of the combos once the dialog form is closed?
Thanks
Paul
Printable View
Hi all,
I have a dialog box with about a dozen combo boxes. How can I access the checked results of the combos once the dialog form is closed?
Thanks
Paul
save the values in global varibale
thanks
When the dialog is "closed", it is not got rid off, just the interface is hidden. You can still access properties of that object until you have disposed of it.
For example heres a snippet of how I have used it
Code:Dim fileOpen As New OpenFileDialog
fileOpen.Filter = "Structure XML files (*.xml)|*.xml"
fileOpen.Title = "Import Structure File"
If fileOpen.ShowDialog() = DialogResult.OK Then
Dim validate As New ValidateXML(fileOpen.FileName) 'Use a property after the dialog is closed