This code on my form # 1 button.
Code:Code VBNET:If txtDate.MaskCompleted = True Then Dim form As New frmDataGrid form.Show() Else MessageBox.Show("You must input a date") Exit Sub End If
I added a form "frmDataGrid" (used vb.net toolbox to create datagrid). I did picked Stored Procedure(@tDate is require parameter) during the wizard. How do I pass a parameter from my form #1 (txtDate) to frmDataGrid?