Use an event in the second form. Here is an example. I've created a project with two forms Form1 and Form2. Form1 will be my main form and has a button named Button1 and a label named Label1. Form2 will have a DateTimePicker control. Here is the source code.
'FORM2 Code
Public Class Form1
Private WithEvents mfForm2 As Form2
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
mfForm2 = New Form2
AddHandler mfForm2.CalculationDone, AddressOf mfForm2_CalculationDone
mfForm2.Show()
End Sub
Private Sub mfForm2_CalculationDone(ByVal vnCalculatedValue As Integer)
Label1.Text = vnCalculatedValue.ToString
End Sub
End Class
'FORM2 Code
Public Class Form2
Public Event CalculationDone(ByVal vnCalculatedValue As Integer)
Private Sub DateTimePicker1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DateTimePicker1.ValueChanged
Dim nDays As Integer = DateDiff(DateInterval.Day, Now, DateTimePicker1.Value)
RaiseEvent CalculationDone(nDays)
End Sub
End Class
What we have done here is added an event CalculationDone to form2. This event is raised anytime the user changes the date value in the datetime picker control. It passes the number of days into the future (or past as a negative number) via the event.
Form1 has a button control that shows form2 and then an event handler that captures the CalculationDone event and posts the result in the label.