Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newbie question
Message
De
06/07/2010 12:22:02
 
 
À
06/07/2010 11:06:07
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01471507
Message ID:
01471537
Vues:
36
Thanks again, Viv

The positioning is easy. The Top moves down as a function of the counter.

Yes, WPF would love this app, but I'm more confident with Win Forms now so I'll continue

Based on the little bit I know about WPF, , I could use the same code you used for textbox and the button, couldn't I?



>>
for (int i = 1; i < 53; i++)
{
Button b = new Button();
b.Name = "Button"+i.ToString();
//Set position, size etc....
Controls.Add(b);
}

Don't know how you'd want to handle positioning though.... (One of those times when WPF would shine :-} )
>>
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform