Bonjour,
ce code:
placé dans Form1_Load, ne donne rien, alors que dans Button1_Click (où button1 est un bouton de Form1), il affiche un rectangle.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 Dim myRc As New Rectangle(5, 5, 30, 20) Dim myG As Graphics = Me.CreateGraphics() myG.DrawRectangle(New Pen(Color.Aqua), myRc) myG.Dispose(),
Quelqu'un sait pourquoi ?
![]()
Partager