Hi Folks
I have a dialog form in my VB.NET 2008 project that I modified slightly to allow it to be passed a pair of parameters by overloading the ShowDialog() method.
What's happening is the form displays, performs the ShowSelections() proc, then comes back here and finishes up and returns to the calling form without waiting for the OK button click (where I fill the msSelection string variable). I'm not sure why this isn't working as I expect it should. Can anyone help?
Thanks
Craig
CraigHartz
I have a dialog form in my VB.NET 2008 project that I modified slightly to allow it to be passed a pair of parameters by overloading the ShowDialog() method.
Code:
Public Overloads Function ShowDialog(ByVal Commodity As String, ByVal Shiprecv As String) As String()
ShowSelections(Commodity, Shiprecv)
If MyBase.ShowDialog = Windows.Forms.DialogResult.OK Then
Return msSelection
Else
Return Nothing
End If
End Function
What's happening is the form displays, performs the ShowSelections() proc, then comes back here and finishes up and returns to the calling form without waiting for the OK button click (where I fill the msSelection string variable). I'm not sure why this isn't working as I expect it should. Can anyone help?
Thanks
Craig
CraigHartz