We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Programatically change text in a textnode

Thread ID:

Created:

Updated:

Platform:

Replies:

77848 Nov 19,2008 08:54 AM UTC Jul 5,2011 03:25 PM UTC Windows Forms 6
loading
Tags: Diagram
Administrator [Syncfusion]
Asked On November 19, 2008 08:54 AM UTC

Hi,
I'm using VB .net 2008

I have a custom Group Class that I use as a custom node. It has a textnode and a rectangle.

I want to know the method for programmatically changing the text that is displayed in the textnode.

Thanks in advance


Administrator [Syncfusion]
Replied On November 19, 2008 09:00 AM UTC

Actually, I do not even know how to obtain the text from a textnode programmatically.

Can you please explain?

thanks


Administrator [Syncfusion]
Replied On November 19, 2008 12:44 PM UTC

Hi Ameel,

The textnode's text can be changed programmatically using the TextNode's "text" property.

I am attaching my sample file herewith for your convenience.

Update me of your experiences.

Happy Coding!

- Ajeet



Test_VB_c5fe8900.zip

Administrator [Syncfusion]
Replied On November 19, 2008 01:06 PM UTC

Ok.
Thanks for that, but its not helping.

But actually it was accessing the textnode within a group that i had trouble with.

But i figured out i could use:
Directcast(group.getchild(i), textnode)

thanks anyway


Administrator [Syncfusion]
Replied On November 20, 2008 04:55 AM UTC

Hi Ameel,

The code file that demonstrates the dynamic change in the text of the text node is here at:

*****
"http://www.syncfusion.com/support/user/uploads/Test_VB_dc5c9442.zip
*****
Test'>http://www.syncfusion.com/support/user/uploads/Test_VB_dc5c9442.zip">Test VB


Happy Coding!

-Ajeet


Administrator [Syncfusion]
Replied On November 20, 2008 12:39 PM UTC

Thanks Ajeet ^__^


Jim Bonomo
Replied On July 5, 2011 03:25 PM UTC

I am interested in the sample code discussed in this post but it is no longer available. Can you give me an updated link to it?

Thanks!


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;