Skip to main content

AccessTr.neT


Buton İle Frame Backcolor Değiştirmek

Buton İle Frame Backcolor Değiştirmek

#4
böyle yazdım oldu

Private Sub CommandButton1_Click()
    changeColor Me.TextBox1.Value, Me.TextBox2.Value
End Sub

Private Sub changeColor(controlName As String, colorName As String)
    Dim ctrl As Control
    For Each ctrl In Me.Controls
        If TypeOf ctrl Is MSForms.Frame Then
            If ctrl.Enabled = True Then
                If (ctrl.Name = controlName) Then
                    ctrl.BackColor = GetHexColor(colorName)
                End If
            End If
        End If
    Next
End Sub
@benbendedeilem
Cevapla

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Bu Konudaki Yorumlar
Cvp: Buton İle Frame Backcolor Değiştirmek - Yazar: accessman - 10/01/2020, 10:55
Task