bonjour,

et oui, c'est toujours le débutant!!

Je cherche à mettre un attribut d'une classe dans un textbox.

voici ma classe:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
 
        class Contact
    {
 
        public Contact(int No, String Nm, String Pre, String ad, int CP, String Vi)
        {
            Num = No;
            Nom = Nm;
            Prenom = Pre;
            Adresse = ad;
            Code_Postal = CP;
            Ville = Vi;
        }
 
public int GetNum()
        {
            return Num;
        }
 
        public String GetNom()
        {
            return Nom;
        }
 
        public String GetPrenom()
        {
            return Prenom;
        }
 
        public String GetAdresse()
        {
            return Adresse;
        }
 
        public int GetCP()
        {
            return Code_Postal;
        }
 
        public String GetVille()
        {
            return Ville;
        }
 
        public void AfficherNum(){
            Console.Write(Num);
	}
 
        public void AfficherNom(){
		    Console.Write(Nom);
	}
 
        public void AfficherPrenom(){
            Console.Write(Prenom);
	}
 
        public void AfficherAdresse(){
		Console.Write(Adresse);
	}
 
        public void AfficherCP(){
		Console.Write(Code_Postal);
	}
 
        public void AfficherVille(){
            Console.Write(Ville);
	}
 
    }
le nom de mon textbox est: T_Nom

je voudrai donc y ajouter le Nom à l'intérieur de T_nom


comment dois-je faire??

merci d'avance!