Incrementer une pictureBox en VB.net URGENT!!!!!!

cs_watcher69000 Messages postés 8 Date d'inscription mardi 7 juin 2005 Statut Membre Dernière intervention 24 juin 2005 - 23 juin 2005 à 14:23
cs_watcher69000 Messages postés 8 Date d'inscription mardi 7 juin 2005 Statut Membre Dernière intervention 24 juin 2005 - 24 juin 2005 à 08:58
Voici mon code:



Public Sub fonction_tapis()

Dim Pict As New PictureBox

Pict = PictureBox1

While Pict IsNot PictureBox29

Pict.BackColor = Color.Red

Me.Refresh()

Sleep(2000)

Pict.BackColor = Color.White

Me.Refresh()

Exit While

End While

End Sub



Tout marche nikel, mais le problème que j'ai c'est pour incrementer la pictureBox. Je suis bloquer a ce niveau la.En VB.

si quelqu'un peut m'aider c'est urgent!! merci d'avance!!

3 réponses

econs Messages postés 4030 Date d'inscription mardi 13 mai 2003 Statut Membre Dernière intervention 23 décembre 2008 24
23 juin 2005 à 16:43
Ca veut dire quoi "Incrémenter une PictureBox" ?


Manu
-------------------------------------------
Une question bien posée, c'est une chance de réponse bien adaptée.
0
erti1711 Messages postés 75 Date d'inscription samedi 2 avril 2005 Statut Membre Dernière intervention 16 juin 2006 1
23 juin 2005 à 17:11
Public Sub fonction_tapis()
Dim Pict As New PictureBox
Dim i As integer

i=1
Pict = PictureBox & i
While Pict<>PictureBox30 or i <>30
Pict.BackColor = Color.Red
Me.Refresh()
Sleep(2000)
Pict.BackColor = Color.White
Me.Refresh()
i=i+1
End While
End Sub

j'ai pas essayer je te promet rien
++
0
cs_watcher69000 Messages postés 8 Date d'inscription mardi 7 juin 2005 Statut Membre Dernière intervention 24 juin 2005
24 juin 2005 à 08:58
Non désolé ne marche point

sur Pict = PictureBox1 & i

car erreur:

Opérator & is not defined for types 'System.Windows.Forms.pictureBox' and integer

Voila merci de me retransmettre une nouvelle méthode.
0
Rejoignez-nous