Thursday, August 30, 2012
VB.Net'te bir control'e tooltip eklemek
Private myToolTip As ToolTip
myToolTip = New ToolTip()
myToolTip.SetToolTip(Button1, "My Tooltip Text")
Tuesday, August 28, 2012
DataGridView'de Header Kısmına ComboBox Eklemek
Form_Load(........
Dim rect As Rectangle = DataGridView1.GetCellDisplayRectangle(3, -1, True)
'cbVolumeOrder, datagridview üzerinde göstermek istediğimiz combobox ımız
cbVolumeOrder.Location = New Point(rect.Location.X + 60, rect.Location.Y + 15)
DataGridView1.Controls.Add(cbVolumeOrder)
Textbox içine sadece alphanumeric karakterler girilmesini sağlayan kod.
Private Sub textBox_KeyPress(........
Dim cInvalidChars() As Char = {"~", "`", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "_", "-", "=", "+", "{", "[", "}", "]", "|", "\", ":", ";", """", "'", "<", ",", ">", ".", "?", "/"}
Dim result As Boolean = False
result = cInvalidChars.Contains(e.KeyChar)
If result Then
e.Handled = True
End If
End Sub
DataGridView de bir hücreye odaklanmak.
DataGridView1.CurrentCell = DataGridView1.Item("ColumnName", rowIndex)
How to focus a cell in datagridview in vb.net
How to focus a cell in datagridview in vb.net
Subscribe to:
Posts (Atom)