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. Image for the cookie policy date
close icon

Fontdialog code not working: want to change diagram text node

This code not only shows the dialog box twice, but the font and its size is not applied to the text. I don't know where I'm going wrong. I've tried it with several different combinations of code. Please help.

Private Sub btnFontDialog_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFontDialog.Click
Dim strFamilyName As String = FontDialog1.ShowDialog.ToString
If FontDialog1.ShowDialog() <> DialogResult.Cancel Then
Me.Diagram1.Controller.TextEditor.FamilyName = strFamilyName
End If
End Sub
Thank you.



2 Replies

AD Administrator Syncfusion Team April 28, 2011 09:56 PM UTC

wrong forum. will post in windows forms.



AA Amsath Ali M Syncfusion Team May 2, 2011 09:50 AM UTC

Hi Diane,

Thanks for the update.

Since you have created DirectTrac incident 79905 for your query, please refer that incident for better follow up.

Regards,
Amsath Ali.M



Loader.
Live Chat Icon For mobile
Up arrow icon