Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie question
Message
From
06/07/2010 12:28:07
 
 
To
06/07/2010 12:22:02
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Environment versions
Environment:
C# 3.0
Miscellaneous
Thread ID:
01471507
Message ID:
01471539
Views:
38
>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?

Yeah. The big difference in WPF would be that you could just have, say, a StackPanel or a UniformGrid on the Form and keep adding the buttons to that - no need to fiddle with sizing and positioning.
>
>
>
>>>
>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 :-} )
>>>
Previous
Reply
Map
View

Click here to load this message in the networking platform