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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Hyperlink Labels in winforms

Thread ID:

Created:

Updated:

Platform:

Replies:

76905 Sep 29,2008 11:54 PM UTC Oct 14,2008 12:35 AM UTC WinForms 2
loading
Tags: Diagram
Administrator [Syncfusion]
Asked On September 29, 2008 11:54 PM UTC

I'm using the winforms diagram. Is there a way to show the text as a hyperlink? I would like to launch another diagram window when the hyperlink is clicked.

thanks
-Sash


J.Nagarajan [Syncfusion]
Replied On September 30, 2008 05:33 AM UTC

Hi Sash ,

Thanks for your interest in Syncfusion products.

You can use our "TextNode" as a hyperlink label and you can bring a diagram form when you click on it. Please refer to the below code snippet.

TextNode txtnode = new TextNode("Open a new DiagramForm");
txtnode.SizeToText(SizeF.Empty);
txtnode.PinPoint = new PointF(250, 30);
this.diagram1.Model.AppendChild(txtnode);

this.diagram1.EventSink.NodeClick += new NodeMouseEventHandler(EventSink_NodeClick);
void EventSink_NodeClick(NodeMouseEventArgs evtArgs)
{
DiagramForm m_dForm = new DiagramForm();
m_dForm.Show();
}

Here is the working sample.

http://websamples.syncfusion.com/samples/Diagram.Windows/F76905/main.htm

Please refer to it and let me know if this helps.

Thanks,
Nagaraj



Sash
Replied On October 14, 2008 12:35 AM UTC

I saw the textnode sample. What i was looking for is a textnode as a label, something that exists as a property of a parentnode where i dont have to worry about node location,linking and other things.

>Hi Sash ,

Thanks for your interest in Syncfusion products.

You can use our "TextNode" as a hyperlink label and you can bring a diagram form when you click on it. Please refer to the below code snippet.

TextNode txtnode = new TextNode("Open a new DiagramForm");
txtnode.SizeToText(SizeF.Empty);
txtnode.PinPoint = new PointF(250, 30);
this.diagram1.Model.AppendChild(txtnode);

this.diagram1.EventSink.NodeClick += new NodeMouseEventHandler(EventSink_NodeClick);
void EventSink_NodeClick(NodeMouseEventArgs evtArgs)
{
DiagramForm m_dForm = new DiagramForm();
m_dForm.Show();
}

Here is the working sample.

http://websamples.syncfusion.com/samples/Diagram.Windows/F76905/main.htm

Please refer to it and let me know if this helps.

Thanks,
Nagaraj





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

;