Click here to Skip to main content
15,895,667 members
Home / Discussions / C#
   

C#

 
GeneralRe: Loading in old MFC Serialized files Pin
Heath Stewart22-Apr-04 4:28
protectorHeath Stewart22-Apr-04 4:28 
GeneralRe: Loading in old MFC Serialized files Pin
Simon Wren22-Apr-04 4:38
professionalSimon Wren22-Apr-04 4:38 
Generals Text Property in a TreeNode Pin
Bill Dean22-Apr-04 3:56
Bill Dean22-Apr-04 3:56 
GeneralRe: s Text Property in a TreeNode Pin
Judah Gabriel Himango22-Apr-04 4:03
sponsorJudah Gabriel Himango22-Apr-04 4:03 
GeneralRe: s Text Property in a TreeNode Pin
Bill Dean22-Apr-04 4:10
Bill Dean22-Apr-04 4:10 
GeneralRe: s Text Property in a TreeNode Pin
Heath Stewart22-Apr-04 4:14
protectorHeath Stewart22-Apr-04 4:14 
GeneralRe: s Text Property in a TreeNode Pin
Bill Dean22-Apr-04 4:24
Bill Dean22-Apr-04 4:24 
GeneralRe: s Text Property in a TreeNode Pin
Heath Stewart22-Apr-04 4:30
protectorHeath Stewart22-Apr-04 4:30 
Then using events would be the logical way to go.

The reason the get accessor is not called is because the TreeView uses the TreeNode type. Its Text property is not virtual so the IL instruction call is used, as opposed to callvirt. Even if you hide it using the new operator, this will not work because the TreeView is using call on the actual TreeNode type. If you were to get the Text property referencing your type (DerivedNode), then your get accessor would be called.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: s Text Property in a TreeNode Pin
Bill Dean22-Apr-04 4:41
Bill Dean22-Apr-04 4:41 
GeneralCircular Buffer Technique question Pin
TimTM22-Apr-04 3:45
TimTM22-Apr-04 3:45 
GeneralRe: Circular Buffer Technique question Pin
Jeremy Kimball22-Apr-04 5:48
Jeremy Kimball22-Apr-04 5:48 
GeneralRe: Circular Buffer Technique question Pin
TimTM22-Apr-04 8:10
TimTM22-Apr-04 8:10 
GeneralRe: Circular Buffer Technique question Pin
scadaguy22-Apr-04 6:26
scadaguy22-Apr-04 6:26 
GeneralRe: Circular Buffer Technique question Pin
TimTM22-Apr-04 8:04
TimTM22-Apr-04 8:04 
GeneralRe: Circular Buffer Technique question Pin
scadaguy22-Apr-04 8:44
scadaguy22-Apr-04 8:44 
GeneralRe: Circular Buffer Technique question Pin
TimTM22-Apr-04 9:01
TimTM22-Apr-04 9:01 
GeneralWindows Forms DataGrid Pin
dcronje22-Apr-04 3:39
dcronje22-Apr-04 3:39 
GeneralRe: Windows Forms DataGrid Pin
Heath Stewart22-Apr-04 5:04
protectorHeath Stewart22-Apr-04 5:04 
GeneralRe: Windows Forms DataGrid Pin
Jeremy Kimball22-Apr-04 6:08
Jeremy Kimball22-Apr-04 6:08 
GeneralRe: Windows Forms DataGrid Pin
Heath Stewart22-Apr-04 7:24
protectorHeath Stewart22-Apr-04 7:24 
GeneralRe: Windows Forms DataGrid Pin
Jeremy Kimball22-Apr-04 7:59
Jeremy Kimball22-Apr-04 7:59 
Generalmdb Synchronize Pin
basdanny22-Apr-04 3:00
basdanny22-Apr-04 3:00 
GeneralVss 6.0c Pin
sreejith ss nair22-Apr-04 2:14
sreejith ss nair22-Apr-04 2:14 
GeneralRe: Vss 6.0c Pin
Heath Stewart22-Apr-04 2:53
protectorHeath Stewart22-Apr-04 2:53 
GeneralRemote Debugging Pin
MrEyes22-Apr-04 1:53
MrEyes22-Apr-04 1:53 

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.