It appears to me that if Form2 is already designed that you won't need to Dim a new one just show the one you have.
tinstaafl
Nearly a Posting Virtuoso
1,336 posts since Jun 2010
Reputation Points: 360
Solved Threads: 235
Skill Endorsements: 14
Declare object instance of form2 and use it to disable or visble a button in form2.
You already declare it but you didn't use it.
Try this :
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Dim form2 As New Form2
form2.SaveVISACaseButton.Enabled = False
form2.SaveVISACaseButton.Visible = False
form2.Show()
Me.Hide()
End Sub
Jx_Man
Senior Poster
3,538 posts since Nov 2007
Reputation Points: 1,488
Solved Threads: 524
Skill Endorsements: 64