Click here to Skip to main content
16,005,209 members
Home / Discussions / C#
   

C#

 
GeneralAnyone wanna see Pin
Nnamdi Onyeyiri1-Aug-02 8:08
Nnamdi Onyeyiri1-Aug-02 8:08 
GeneralRe: Anyone wanna see Pin
leppie1-Aug-02 8:13
leppie1-Aug-02 8:13 
GeneralRe: Anyone wanna see Pin
Nnamdi Onyeyiri1-Aug-02 8:15
Nnamdi Onyeyiri1-Aug-02 8:15 
GeneralRe: Anyone wanna see Pin
leppie1-Aug-02 8:39
leppie1-Aug-02 8:39 
GeneralRe: Anyone wanna see Pin
Nnamdi Onyeyiri1-Aug-02 8:46
Nnamdi Onyeyiri1-Aug-02 8:46 
GeneralRe: Anyone wanna see Pin
James T. Johnson1-Aug-02 13:20
James T. Johnson1-Aug-02 13:20 
GeneralRe: Anyone wanna see Pin
Nnamdi Onyeyiri2-Aug-02 7:34
Nnamdi Onyeyiri2-Aug-02 7:34 
GeneralRe: Anyone wanna see Pin
James T. Johnson2-Aug-02 14:29
James T. Johnson2-Aug-02 14:29 
You do use it, but you defer the setting of the various properties until a little bit later.

The "proper" way to create the control is to expose a Cards property which is a Collection of Card objects. The collection can then be modified at runtime and the control will update itself automatically.

An example of this set up is the ListView control; it exposes an Items collection which contains ListViewItems that represent the items in the control. This collection can be modified at runtime, or code can be output by the forms designer to add the items during the form's InitializeComponent() method.

At first this does not makes sense, but then there are added benefits to coding this way: The control is more flexible in that Cards can be added and removed at runtime; and it opens itself to be easier to use because it follows the standard set by the base controls.

James
"Java is free - and worth every penny." - Christian Graus
GeneralRe: Anyone wanna see Pin
Nnamdi Onyeyiri2-Aug-02 23:07
Nnamdi Onyeyiri2-Aug-02 23:07 
QuestionLoaded Assemblies? Pin
Johnny Zee1-Aug-02 8:09
sussJohnny Zee1-Aug-02 8:09 
AnswerRe: Loaded Assemblies? Pin
leppie1-Aug-02 8:18
leppie1-Aug-02 8:18 
GeneralTCPClient and TCPListener Pin
Michael P Butler1-Aug-02 5:12
Michael P Butler1-Aug-02 5:12 
GeneralRe: TCPClient and TCPListener Pin
jparsons1-Aug-02 6:04
jparsons1-Aug-02 6:04 
GeneralWrite a struct to a file... Pin
Daniel Strigl1-Aug-02 4:35
Daniel Strigl1-Aug-02 4:35 
GeneralRe: Write a struct to a file... Pin
Andy Smith1-Aug-02 6:33
Andy Smith1-Aug-02 6:33 
GeneralRe: Write a struct to a file... Pin
Nnamdi Onyeyiri1-Aug-02 8:05
Nnamdi Onyeyiri1-Aug-02 8:05 
GeneralRe: Write a struct to a file... Pin
Daniel Strigl1-Aug-02 8:49
Daniel Strigl1-Aug-02 8:49 
GeneralRe: Write a struct to a file... Pin
Nnamdi Onyeyiri1-Aug-02 8:50
Nnamdi Onyeyiri1-Aug-02 8:50 
GeneralRe: Write a struct to a file... Pin
Eric Gunnerson (msft)1-Aug-02 11:04
Eric Gunnerson (msft)1-Aug-02 11:04 
GeneralCustom control question Pin
pankajdaga1-Aug-02 3:42
pankajdaga1-Aug-02 3:42 
GeneralRe: Custom control question Pin
leppie1-Aug-02 4:07
leppie1-Aug-02 4:07 
GeneralRe: Custom control question Pin
pankajdaga1-Aug-02 4:15
pankajdaga1-Aug-02 4:15 
GeneralRe: Custom control question Pin
leppie1-Aug-02 4:24
leppie1-Aug-02 4:24 
GeneralRe: Custom control question Pin
pankajdaga1-Aug-02 4:56
pankajdaga1-Aug-02 4:56 
GeneralRe: Custom control question Pin
Nnamdi Onyeyiri1-Aug-02 8:02
Nnamdi Onyeyiri1-Aug-02 8:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.