Hallo
Aus einer liste habe ich den Namen einer Control (z.B. txtName), den Property-Name (z.B. Visible) und den Property-Wert (z.B.TRUE)
Wie ich den Control finde ist mir klar, aber wie kann ich den Property-Wert zuweisen?
jemand eine Idee?
Aus einer liste habe ich den Namen einer Control (z.B. txtName), den Property-Name (z.B. Visible) und den Property-Wert (z.B.TRUE)
Wie ich den Control finde ist mir klar, aber wie kann ich den Property-Wert zuweisen?
Code:
Dim contrName As String = "txtName" Dim propName As String = "Visible" Dim propValue As Boolean = True Dim mycontrol As Control mycontrol = Me.Controls.Find(contrName, True)(0) mycontrol.properties.item(propName) = propValue ' Das ist leider wunschdenken.....
Comment