Private Sub Message_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.Visible = False Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None Me.BackgroundImage = Image.FromFile(general.App_Path() & "\lcws\backgroundmessage.bmp") Me.BackgroundImageLayout = ImageLayout.Stretch Me.Width = Me.BackgroundImage.Width Me.Height = Me.BackgroundImage.Height Me.Label1.BorderStyle = BorderStyle.None Me.Label1.BackColor = Color.Transparent Me.Label1.ForeColor = Color.Aquamarine Me.Label1.Font = New Font("arial", 18, FontStyle.Bold, GraphicsUnit.Pixel) Me.Label1.Text = "Veux tu vraiment quitter ?" Me.cancel.AutoSize = True Me.cancel.Font = New Font("arial", 14, FontStyle.Bold, GraphicsUnit.Pixel) Me.cancel.Text = "Non" Me.cancel.ForeColor = Color.Black Me.conti.BackColor = Color.Blue Me.conti.AutoSize = True Me.conti.Font = New Font("arial", 14, FontStyle.Bold, GraphicsUnit.Pixel) Me.conti.Text = "Oui" Me.conti.ForeColor = Color.Black Me.Label1.Left = Me.Width / 2 - Me.Label1.Width / 2 Me.Label1.Top = Me.Height / 2 - (Me.Label1.Height + Me.cancel.Height) / 2 Me.cancel.Top = Me.Label1.Bottom + Me.cancel.Height * 0.8 Me.conti.Top = Me.cancel.Top Me.cancel.Left = 6 Me.conti.Left = Me.Width - 6 - Me.conti.Width Me.Left = 1024 / 2 - Me.Width / 2 Me.Top = 768 / 2 - Me.Height / 2 Me.ShowDialog() End Sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question