Could someone please explain how I overload the Show() method of a form?
Suppose I select a record from a datagrid on Form1, then I want to show the
details of the selected record by opening Form2 using say the CustomerID as
an 'argument' to the Show method.
So, in Form1 I would have code such as:
Sub GetSelectedRecord()
Form2.Show(CustomerID)
Me.Close()
End Sub
.... and in Form2 I woudl have code such as:
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
..... code to read a record from a database using the CustomerID
End Sub
Many Thanks
Paul.