This is the code of the button
Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
Dim RedesWindow2 As New Form2
Me.Hide() 'Here, I hide/close the main form'
Form2.DesktopLocation = Me.DesktopLocation 'Here I say that the 2nd form(form2) should be on the same screen location as the main form, which didn't work'
Form2.Size = Me.Size 'Here I say that the size of the 2nd form(form2) should be the same as the size of the main form, which didn't work'
RedesWindow2.ShowDialog() 'And here I show the 2nd form, but it's not the same size as the main form, nor on the same screen location'
End Sub
PS: I'm a newbie, I just started learning VB.NET a few days ago so please go easy on me. Thanks.

New Topic/Question
Reply



MultiQuote



|