Color and Font Dialog VB .NET Program

Description:         

We can change the back color and fore color of rich textbox by selected color from color dialog, Change the Text font size, type by the font dialog.

Color Dialog

>private Sub showcolor()
For i = 0 To 1
                    ColorDialog1.ShowDialog()
                    If i = 0 Then
                        If ColorDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
                            RichTextBox1.BackColor = ColorDialog1.Color
                        End If
                    End If
                    If i = 1 Then
                        If ColorDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
                            RichTextBox1.ForeColor = ColorDialog1.Color
                        End If
                    End If
                Next
End Sub

OUTPUT


Contact:
Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com
Share:

Total Pageviews

CONTACT US

Prof. Roshan P. Helonde
Mobile: +917276355704
WhatsApp: +917276355704
Email: roshanphelonde@rediffmail.com

Enter Project Title

Popular Projects

All Archive

Contact Form

Name

Email *

Message *