Click here to Skip to main content
15,886,518 members
Home / Discussions / C#
   

C#

 
GeneralEntering Text on an Image Pin
JayTheK12-Jan-04 10:08
JayTheK12-Jan-04 10:08 
GeneralRe: Entering Text on an Image Pin
Niels Penneman12-Jan-04 10:14
Niels Penneman12-Jan-04 10:14 
GeneralObject property with different return types Pin
Articus12-Jan-04 7:13
Articus12-Jan-04 7:13 
GeneralRe: Object property with different return types Pin
leppie12-Jan-04 8:16
leppie12-Jan-04 8:16 
GeneralRe: Object property with different return types Pin
Articus12-Jan-04 22:41
Articus12-Jan-04 22:41 
GeneralRe: Object property with different return types Pin
leppie13-Jan-04 6:16
leppie13-Jan-04 6:16 
GeneralRefresh TreeView in Place Pin
webdudeIA12-Jan-04 5:24
webdudeIA12-Jan-04 5:24 
GeneralRe: Refresh TreeView in Place Pin
Heath Stewart12-Jan-04 8:48
protectorHeath Stewart12-Jan-04 8:48 
There is no direct binding support such as this (though you could add support). Instead, watch the XML fragment/file for changes and update the node text. There are so many ways of doing this, however, that it'd be difficult to list them all here.

You could, for example, watch for any changes in your editor (like for a multi-line TextBox handle the TextChanged event). When it changes, rebuild your tree from the XML information in the TextBox. To update just the node who's representation has changed in the XML fragment/file, it would be much more difficult. You could construct a path by recursing up the parent elements and pre-pending the text each time, using the TreeView.PathSeparator to separate each node. Then use that to find the node in the tree and update only that TreeNode. This would get increasingly difficult for added and removed nodes because you would also have to take state into account. Most implementations I've seen simply refresh the tree, which is apparent for larger XML hierarchies.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Refresh TreeView in Place Pin
webdudeIA12-Jan-04 10:17
webdudeIA12-Jan-04 10:17 
GeneralEnumerations Pin
Anonymous12-Jan-04 4:10
Anonymous12-Jan-04 4:10 
GeneralRe: Enumerations Pin
Colin Angus Mackay12-Jan-04 5:56
Colin Angus Mackay12-Jan-04 5:56 
GeneralRe: Enumerations Pin
Niels Penneman12-Jan-04 5:58
Niels Penneman12-Jan-04 5:58 
GeneralRe: Enumerations Pin
Heath Stewart12-Jan-04 8:38
protectorHeath Stewart12-Jan-04 8:38 
QuestionUnregister Server Activated Object ? Pin
Stefan Troschuetz12-Jan-04 2:35
Stefan Troschuetz12-Jan-04 2:35 
AnswerRe: Unregister Server Activated Object ? Pin
Heath Stewart12-Jan-04 3:57
protectorHeath Stewart12-Jan-04 3:57 
GeneralRe: Unregister Server Activated Object ? Pin
Stefan Troschuetz12-Jan-04 5:54
Stefan Troschuetz12-Jan-04 5:54 
GeneralCould not load type. Pin
Simon Wren12-Jan-04 1:16
professionalSimon Wren12-Jan-04 1:16 
GeneralRe: Could not load type. Pin
Heath Stewart12-Jan-04 2:38
protectorHeath Stewart12-Jan-04 2:38 
GeneralRe: Could not load type. Pin
Simon Wren12-Jan-04 2:54
professionalSimon Wren12-Jan-04 2:54 
QuestionButtons? Pin
thomasa12-Jan-04 0:41
thomasa12-Jan-04 0:41 
AnswerRe: Buttons? Pin
Heath Stewart12-Jan-04 3:14
protectorHeath Stewart12-Jan-04 3:14 
GeneralPictureBox - Getting current mouse location Pin
MrEyes12-Jan-04 0:13
MrEyes12-Jan-04 0:13 
GeneralRe: PictureBox - Getting current mouse location Pin
Heath Stewart12-Jan-04 3:08
protectorHeath Stewart12-Jan-04 3:08 
GeneralRe: PictureBox - Getting current mouse location Pin
MrEyes12-Jan-04 3:25
MrEyes12-Jan-04 3:25 
GeneralShould I change C++ to C# Pin
TWS_Dave11-Jan-04 22:27
TWS_Dave11-Jan-04 22:27 

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.