Change back color of all controls of the windows form through colordialog.

Tagged: 

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #3106

    You can change back color of all controls of the windows form through colordialog using vb.net.

    Dim objColor As New ColorDialog
    If objColor.ShowDialog = _
        Windows.Forms.DialogResult.OK Then
        For Each ctrl As Control In Me.Controls
            ctrl.BackColor = objColor.Color
        Next
    End If
    
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.