Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
Private Sub SetBackColor()
Dim TB As control
For Each TB In Form1.Controls
If TypeName(TB) = "TextBox" Then
TB.BackColor = Color.Yellow
End If
Next
End Sub
Private Sub SetBackColor()
Dim TB As control
For Each TB In [B]FlowLayoutPanel1[/B].Controls
If [B]TypeOf(TB) Is TextBox[/B] Then
TB.BackColor = Color.Yellow 'Een voorbeeld. Elke property kun je hier opgeven en alle 3000 textboxen erven ze.
End If
Next
End Sub
Private Sub DataGridView1_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick
Dim i, j As Integer
i = e.rowIndex
j = e.columnIndex
DataGridView1.Item(j, i).Style.BackColor = Color.Yellow
End Sub
Private Sub DataGridView1_CellDoubleClick(ByVal sender As Object, ByVal e As DataGridViewCellEventArgs) Handles DataGridView1.CellDoubleClick
Dim i, j As Integer
i = e.RowIndex
j = e.ColumnIndex
If DataGridView1.Item(j, i).Style.BackColor = Color.Empty _
Then DataGridView1.Item(j, i).Style.BackColor = Color.Yellow _
Else DataGridView1.Item(j, i).Style.BackColor = Color.Empty
End Sub
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.