I am trying to set up some common dialogs but some how forgot how to do it. I have a menustrip set up just need to know how to apply a fontdialog and colordialog.

Can anyone assit me with this, I need some help as soon as possible. I am working on this for a lab for a class, thanks!

-Sami-

They are both handled the same.

If FontDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
            Me.Font = FontDialog1.Font
        End If

If ColorDialog1.ShowDialog = If ColorDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
Me.BackColor = ColorDialog1.color
End If


i want fill colour in text box object of cystal report.

If ColorDialog1.ShowDialog = If ColorDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
Me.BackColor = ColorDialog1.color
End If


i want fill colour in text box object of cystal report.

Hi All,

I am writing a text editor and want to write a couple of menu options so that the user can change the color of his/her text, If I wrote in the above code, ran my project, wrote in some text, highlighted it and changed the color using the menu option would it work.

I am at work at the moment so I cant try it for my self and find out.

Thanks very much.

John

Edited 6 Years Ago by discovery-power: n/a

This article has been dead for over six months. Start a new discussion instead.