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

Hi,

You can find some more explanation about dialogboxes in vb.net, here.

all sorted

thanks for the reply

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.