Dim pBox As PictureBox = DirectCast(sender, PictureBox) verif1 = False verif2 = True pBox.Size = New Size(42, 42) pBox.Location = New Point(pBox.Location.X - 1, pBox.Location.Y - 1) Application.DoEvents() Threading.Thread.Sleep(50) pBox.Size = New Size(44, 44) pBox.Location = New Point(pBox.Location.X - 1, pBox.Location.Y - 1) Application.DoEvents() Threading.Thread.Sleep(50) pBox.Size = New Size(46, 46) pBox.Location = New Point(pBox.Location.X - 1, pBox.Location.Y - 1) If verif1 True Then pBox.Size New Size(40, 40) If verif2 False And verif1 True Then pBox.Location = New Point(pBox.Location.X - 3, pBox.Location.Y - 3)
pBox.Location = New Point(pBox.Location.X - 1, pBox.Location.Y - 1)
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionSub Timer(...) Handles ... Select Case mEtape Case -1 PictureBox1.Size = New Size(40, 40) Case 0 'Pas de survol 'Ne rien faire Case 1 PictureBox1.Size = New Size(44, 44) mEtape+=1 Case 2 .... Case 3 .... Case 4 mEtape=0 End select End Sub
Sub MouseEnter(...) Handles Me.MouseEnter mEtape=1 End sub Sub MouseLeave(...) Handles Me.MouseLeave mEtape=-1 End sub