Hi @jewel ,
You can bring the value of the Controls in uc_Daily_sale to frm_DailySaleSummary through the constructor of frm_DailySaleSummary
Here is my code which you can refer to.
uc_Daily_sale
Private Sub DataGridView2_CellDoubleClick(sender As Object, e As DataGridViewCellEventArgs) Handles DataGridView2.CellDoubleClick
Dim frm As New frm_DailySaleSummary(DateTimePicker1.Value, DateTimePicker2.Value, txt_dsr.Text)
frm.Show()
End Sub
frm_DailySaleSummary
Dim DTPicker1 As Date
Dim DTPicker2 As Date
Dim txt_dsr As String
Public Sub New(DTPicker1 As Date, DTPicker2 As Date, txt_dsr As String)
InitializeComponent()
DTPicker1 = DTPicker1
DTPicker2 = DTPicker2
txt_dsr = txt_dsr
End Sub
Hope the code above could be helpful.
Best Regards.
Jiachen Li
----------
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.