Click here to Skip to main content
15,909,829 members
Home / Discussions / C#
   

C#

 
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 
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 
Dave thanks for the response, I'm not sure if this got sent to you b4 or not but here it is again...sorry if its duplicated...

So now I'm alittle confused...
I have the following code:

MyTreeNode class implementation
namespace MyName
{
        internal class MyTreeNode : System.Windows.Forms.TreeNode
	{
		private string ExtraLabel;
		public string InternalLabel
		{
			get
			{
				return ExtraLabel;
			}
			set
			{
				ExtraLabel=value;
			}
		}
		
		internal MyTreeNode()
		{
			ExtraLabel=null;
		}
	}
}


Instanciation
MyTreeNode Node = (MyTreeNode)new TreeNode(Drive,IconIndex,IconIndex);


I get an invalid cast exception thrown...what am I doing wrong ?
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 
QuestionHow to connect variable to generated control ? Pin
vgrigor3-Jun-04 2:52
vgrigor3-Jun-04 2:52 
AnswerRe: How to connect variable to generated control ? Pin
Heath Stewart3-Jun-04 4:07
protectorHeath Stewart3-Jun-04 4:07 

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.