Visual Basic - Follow FormPlease visit www.youtube.com/ArcSoftify for more tutorials. If you like it or not please subcribe my Channel. - ArcSoftify CODE: - Form1.Load Me.Size = New Size(300, 300) - Form1.Move If Form2.Visible = True Then Dim vleft As Integer = CInt((Me.Left + Me.Width - (Form2.Width) / 2)) Dim vtop As Integer = CInt((Me.Top + Me.Height - (Form2.Height) / 2)) Form2.Location = New Point(vleft, vtop) Else 'Do Nothing End If - Button1.Click Form2.Size = New Size(250, 80) Dim vleft As Integer = CInt((Me.Left + Me.Width - (Form2.Width) / 2)) Dim vtop As Integer = CInt((Me.Top + Me.Width - (Form2.Height) / 2)) Form2.Show() Form2.Location = New Point(vleft, vtop) Form2.TopMost = True Thats its. code pour embarquer la vidéo : >>> http://www.youtube.com/embed/tZWdvmBaxnM <<< |