CheckBox di FlexGrid
Ade Aan @ May 20, 2008 # No Comment Yet
Terkadang kita butuh icon check mark seperti checkbox di dalam flexgrid. Cara paling mudah adalah dengan menggunakan font “Marlett” seperti contoh dibawah ini:
If FlexGrid1.Row >0 And FlexGrid1.Col=4 Then
FlexGrid1.CellFontname =”Marlett”
If Trim(FlexGrid1.Text) = “” Then
FlexGrid1.Text =”b”
Else
FlexGrid1.Text = “”
End If
End If
Nah untuk ketika data akan disimpan, gunakan kode dibawah [...]
More on page 141
Key Enter di DTPicker Control
Ade Aan @ August 21, 2006 # No Comment Yet
Untuk berpindah dari satu control ke control yang lain di Visual Basic, kita biasa menggunakan key Enter dengan cara “menangkap” keyasciinya lalu mengirimkannya melalui prosedur Form_Keypress. Tapi hal ini tidak bisa dilakukan pada control DTPicker.
More on page 26
How to set null value on date field?
Ade Aan @ July 23, 2006 # No Comment Yet
I had datepicker with checkbox. When i want to save datepicker to date field value with unchecked, it doesnt save at all. But when i give if statement and set date field value to null, it shows error “Type Mismatch”. Do you ever have the same problem?
Here is a way to rectify the problem:
If IsDate(dtPicker.value) [...]
More on page 16