'In first form you have to send the form1 in Form2.tag property like below
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim frm2 As New Form2
frm2.Tag = Me
frm2.Show()
End Sub
'Below codes are in Form2
Private frmlog As Form
Private Sub Form2_Load(sender As Object, e As EventArgs) Handles Me.Load
If Not IsNothing(Me.Tag) Then
Frm1 = DirectCast(Me.Tag, Form)
Frm1.Hide()
End If
End Sub
'Below codes are in Form2
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Form1.button1.Enabled = True
Form1.button2.Enabled = True
End Sub
'don't forget to accept answer if you got solution