High-Tech
Santé-Médecine
Droit-Finances
CodeS-SourceS
Inscription
Plan
Connexion
Rechercher un code, un tuto, une réponse
Accueil
Forum
Tutoriels
Codes Sources
Snippets
Top membres
Tous les langages
Delphi / Pascal
Java
Python
SQL
RegEx
Flash
ASM
IRC
Graphisme
PDA
ColdFusion
Foxpro
Flex
Visual Basic / VB.NET
Forum
Tutoriels
Codes Sources
Snippets
Top membres
PHP
Forum
Tutoriels
Codes Sources
Snippets
Top membres
C/C++/C++.NET
Forum
Tutoriels
Codes Sources
Snippets
Top membres
Javascript
Forum
Tutoriels
Codes Sources
Snippets
Top membres
C#/.NET
Forum
Tutoriels
Codes Sources
Snippets
Top membres
ASP/ASP.NET
Forum
Tutoriels
Codes Sources
Snippets
Top membres
Accueil
Connexion
Déposer un code
Code
Recherche
Haut
Forum
C# / .NET
Sujet Précédent
Sujet Suivant
Afficher un tableau dans 1 textBox
Résolu
drcmomo
Messages postés
182
Date d'inscription
lundi 13 mars 2006
Statut
Membre
Dernière intervention
25 décembre 2009
- 5 sept. 2007 à 17:01
drcmomo
Messages postés
182
Date d'inscription
lundi 13 mars 2006
Statut
Membre
Dernière intervention
25 décembre 2009
-
5 sept. 2007 à 17:18
Bonjour a tous !
voila j'ai un petit soucis j'ai 1 textbox que j'aimerais afficher un tableau de 5 elements j'ai crée une petite boucle la voila:
for (
int i = 0; i < tab.Length ; i++){
//s = String.Format("{0:X}", tab[i]);list.Add(tab[i]);
this.textBox1.Text =
String.Format(
"{0:X}", tab[i]);}
Mon probléme c'est qu'il m'affiche le dernier element du tableau au lieu de tous
QUL
QUELQ'UN AURAIT UNE PETITE IDEE (je sais jsuis nul )
Afficher la suite
A voir également:
Afficher un tableau en c#
Afficher un tableau php en html
-
Conseils pratiques -PHP
Retourner un tableau en c
-
Forum C
Retourner un tableau avec un méthode
✓
-
Forum C++ & C++ .NET
Dessiner un tableau
✓
-
Forum C# / .NET
Retourner tableau 2d
✓
-
Forum C / C++ / C++.NET
3 réponses
Réponse 1 / 3
sebmafate
Messages postés
4936
Date d'inscription
lundi 17 février 2003
Statut
Membre
Dernière intervention
14 février 2014
36
5 sept. 2007 à 17:07
Bonjour,
comme ceci, ce sera mieux :
for (int i = 0; i < tab.Length ; i++)
{
//s = String.Format("{0:X}", tab[i]);
list.Add(tab[i]);
this.textBox1.Text +
= String.Format("{0:X}{1}", tab[i], Environment.NewLine); }
Sébastien FERRAND
(
blog
)
Consultant Indépendant
[Microsoft Visual C# MVP]
Réponse 2 / 3
drcmomo
Messages postés
182
Date d'inscription
lundi 13 mars 2006
Statut
Membre
Dernière intervention
25 décembre 2009
5 sept. 2007 à 17:12
coool merci !!!!!
par contre il y a t'il un moyen de mettre les données sur une seule ligne?
Réponse 3 / 3
drcmomo
Messages postés
182
Date d'inscription
lundi 13 mars 2006
Statut
Membre
Dernière intervention
25 décembre 2009
5 sept. 2007 à 17:18
j'ai trouvé !!!!!!!!!!
Merci a tous
Votre réponse
Discussions similaires
afficher un tableau en php
Larose_1921
-
18 avril 2020 à 16:00
s
-
6 mai 2020 à 18:11
Comment remplir un tableau dans une fonction
chris68fr
-
5 avril 2003 à 14:24
BruNews
-
5 avril 2003 à 22:10
Une fonction qui renvoie un tableau
RLBDC
-
15 juin 2005 à 13:48
vecchio56
-
15 juin 2005 à 14:18
Afficher un tableau
Blaspheme
-
1 oct. 2006 à 16:14
Blaspheme
-
4 oct. 2006 à 16:39
retourner un tableau
maxelpiratos
-
30 nov. 2005 à 14:44
adressprov
-
3 août 2006 à 16:07
Rejoignez-nous