I'm trying to do something that in my mind should be so simple, but my head must've took a vacation....
I have a dialog that has ten textboxes to store XML file paths, a Select button (opens OpenFileDialogXML), an OK and Cancel button.
What I want to have happen is that when the user selects the XML file in the OpenFileDialogXML and clicks OK, that the entry goes into the last selected textbox.
The problem is that the Select button from the original dialog has focus when the OK button is selected. Any assistance with how to get the last textbox selected would be appreciated.
TIA
I have a dialog that has ten textboxes to store XML file paths, a Select button (opens OpenFileDialogXML), an OK and Cancel button.
What I want to have happen is that when the user selects the XML file in the OpenFileDialogXML and clicks OK, that the entry goes into the last selected textbox.
VB.NET:
Private Sub OpenFileDialogXML_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialogXML.FileOk
'Need to select last textbox that had focus.
Me.ActiveControl.Text = OpenFileDialogXML.FileName
End Sub
TIA