Click here to Skip to main content
15,926,507 members
Home / Discussions / C#
   

C#

 
GeneralRe: "scrolling" old listbox items off the bottom when a new one is added to the top... Pin
Heath Stewart3-Jun-04 7:22
protectorHeath Stewart3-Jun-04 7:22 
GeneralRe: "scrolling" old listbox items off the bottom when a new one is added to the top... Pin
Dave Kreskowiak3-Jun-04 7:25
mveDave Kreskowiak3-Jun-04 7:25 
GeneralRe: "scrolling" old listbox items off the bottom when a new one is added to the top... Pin
Dave Kreskowiak3-Jun-04 6:39
mveDave Kreskowiak3-Jun-04 6:39 
GeneralSimple (I think) Inheritance question Pin
Guinness4Strength3-Jun-04 4:43
Guinness4Strength3-Jun-04 4:43 
GeneralRe: Simple (I think) Inheritance question Pin
Judah Gabriel Himango3-Jun-04 5:59
sponsorJudah Gabriel Himango3-Jun-04 5:59 
GeneralRe: Simple (I think) Inheritance question Pin
Heath Stewart3-Jun-04 6:02
protectorHeath Stewart3-Jun-04 6:02 
GeneralRe: Simple (I think) Inheritance question Pin
Guinness4Strength3-Jun-04 6:04
Guinness4Strength3-Jun-04 6:04 
GeneralRe: Simple (I think) Inheritance question Pin
Dave Kreskowiak3-Jun-04 6:07
mveDave Kreskowiak3-Jun-04 6:07 
No, you don't have to provide 5 constructors for your TreeNode class. Since your extending the existing TreeNode class, all you have to do is supply your own constructor if one of the existing ones is not suitable. You could override the existing contructors to provide slightly different functionality, like filling in your extended fields with default data, or provide a completely new one so long as the signature of your constructor doesn't match an existing one.

If you wanted to provide a constructor that took two String parameters and an existing TreeNode object, instead of a single String and TreeNode, you could because there is no matching constructor in the base class constructor list.
public TreeNode( string text, string altData, TreeNode[] children );


Now, if you wanted to provide a new constructor that takes the same type and same number of parameters, like:
public TreeNode( string text, TreeNode[] children );

and
public TreeNode( string altData, TreeNode[] children );

Then you would have to rearrange your parameter list because you can't ahve two constructors with the same signature, in this case TreeNode(string,TreeNode[]):
public TreeNode( TreeNode[] children, string altData );



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Simple (I think) Inheritance question Pin
BrcKcc3-Jun-04 6:24
BrcKcc3-Jun-04 6:24 
GeneralRe: Simple (I think) Inheritance question Pin
Guinness4Strength3-Jun-04 9:31
Guinness4Strength3-Jun-04 9:31 
GeneralRe: Simple (I think) Inheritance question Pin
Dave Kreskowiak3-Jun-04 9:39
mveDave Kreskowiak3-Jun-04 9:39 
GeneralRe: Simple (I think) Inheritance question Pin
Guinness4Strength3-Jun-04 9:45
Guinness4Strength3-Jun-04 9:45 
GeneralRe: Simple (I think) Inheritance question Pin
Dave Kreskowiak3-Jun-04 10:07
mveDave Kreskowiak3-Jun-04 10:07 
GeneralRe: Simple (I think) Inheritance question Pin
Guinness4Strength3-Jun-04 10:10
Guinness4Strength3-Jun-04 10:10 
GeneralRe: Simple (I think) Inheritance question Pin
Dave Kreskowiak3-Jun-04 12:25
mveDave Kreskowiak3-Jun-04 12:25 
GeneralRe: Simple (I think) Inheritance question Pin
Baris Kurtlutepe4-Jun-04 2:57
Baris Kurtlutepe4-Jun-04 2:57 
GeneralXSD Dataset and Oracle query with functions Pin
Alex Getman3-Jun-04 4:35
Alex Getman3-Jun-04 4:35 
GeneralRe: XSD Dataset and Oracle query with functions Pin
frank213-Jun-04 5:01
frank213-Jun-04 5:01 
GeneralRe: XSD Dataset and Oracle query with functions Pin
Alex Getman3-Jun-04 5:32
Alex Getman3-Jun-04 5:32 
GeneralRe: XSD Dataset and Oracle query with functions Pin
Heath Stewart3-Jun-04 6:05
protectorHeath Stewart3-Jun-04 6:05 
GeneralPrint To File Pin
Gary Thom3-Jun-04 4:16
Gary Thom3-Jun-04 4:16 
GeneralReplicateTextbox functions Pin
Aaron Eldreth3-Jun-04 3:05
Aaron Eldreth3-Jun-04 3:05 
GeneralRe: ReplicateTextbox functions Pin
Heath Stewart3-Jun-04 4:04
protectorHeath Stewart3-Jun-04 4:04 
GeneralRe: ReplicateTextbox functions Pin
Aaron Eldreth3-Jun-04 10:07
Aaron Eldreth3-Jun-04 10:07 
GeneralRe: ReplicateTextbox functions Pin
Dave Kreskowiak3-Jun-04 10:09
mveDave Kreskowiak3-Jun-04 10:09 

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.