ACCEDER AUX CONTROLES DUNE OTRE FORM ????

THEREALKILLER Messages postés 88 Date d'inscription jeudi 23 mai 2002 Statut Membre Dernière intervention 27 mars 2006 - 13 janv. 2004 à 04:10
THEREALKILLER Messages postés 88 Date d'inscription jeudi 23 mai 2002 Statut Membre Dernière intervention 27 mars 2006 - 13 janv. 2004 à 05:13
Salut toi ...
Bha ca f 5 h ke je surf et je trouve rien ...

3 réponses

gibozsec Messages postés 318 Date d'inscription mardi 27 mai 2003 Statut Membre Dernière intervention 11 mars 2010
13 janv. 2004 à 04:48
Pour acceder au controles d'une autre form il suffit de faire : nom_de_la_fom.nom_du_controle

?-) Grrrrrrrrrrr ?-)
0
THEREALKILLER Messages postés 88 Date d'inscription jeudi 23 mai 2002 Statut Membre Dernière intervention 27 mars 2006
13 janv. 2004 à 05:03
c en .net et c bon g trouve Merci : )
Je pose la source on c jamais
Si vs avez besoin d'explcation ds le moteur de recherche tapez accessibilité des controles :\\ 5 putin d'h pour ca Gr tt simplement , et com dabitude on regle un pb allé hop un 2eme
(ou 1000000 eme com vs voulez )

Public Class Form2

Inherits System.Windows.Forms.Form

Public FrmMere As Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

FrmMere.ComboBox1.Items.Insert(0, TextBox1.Text)

End Sub
End Class
0
THEREALKILLER Messages postés 88 Date d'inscription jeudi 23 mai 2002 Statut Membre Dernière intervention 27 mars 2006
13 janv. 2004 à 05:13
Knibal

g oublie une partie importante

avant dapeler la form2

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

Dim form2 As Form2

form2 = New Form2()
form2.FrmMere = Me <<< important
form2.ShowDialog()

End Sub

voila voila
0
Rejoignez-nous