Change Back Color using ColorDialog - Visual Basic .NET

Tags: VB.NET, VB 2008, VB 2010, VB 2012, VB 2013

This Tutorial will show you how to change Form, or any control back color using color dialog

First add a color dialog to the form. When you add a color dialog, it will not appear on the form, however it appears in the grey are below the form.

Add a button to the form.

The following code will be used when the button is clicked

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        ColorDialog1.ShowDialog()

        Me.BackColor = ColorDialog1.Color

End Sub

Color Dialog VB.NET


Share This

Home | About | Contact | Privacy Policy

Copyright visual-basic-tutorials.com 2017 - All Rights Reserved.