sensasiii This user has been deleted
|
ada sesiapa leh ajar tak cam ne nak disablekan tab key kat VB ?? aku ada buat satu application pakai VB...aku tak nak bila org pakai application ni, diorang pakai tab key untuk ke textbox lain...aku nak diorang clik satu per satu...textbox tu... |
|
|
|
|
|
|
eddom This user has been deleted
|
i think you have to use the window API to disable it
[ Last edited by eddom at 10-7-2006 09:22 AM ] |
|
|
|
|
|
|
|
cuba set TabIndex = 0 untuk semua controls |
|
|
|
|
|
|
eddom This user has been deleted
|
Originally posted by shahnazz at 10-7-2006 10:35 AM
cuba set TabIndex = 0 untuk semua controls
You cant, VB will change automatically for you |
|
|
|
|
|
|
|
try guna kaedah nih:
- Private Sub Form_Load()
- Dim ctl As Control
- For Each ctl In Me.Controls
- ctl.TabStop = False
- Next
- End Sub
Copy the Code
ni untuk semua controls, pepandai la buat if-else to select kalau control tu is a text box... |
|
|
|
|
|
|
eddom This user has been deleted
|
Originally posted by shahnazz at 10-7-2006 02:36 PM
try guna kaedah nih:
Private Sub Form_Load()
Dim ctl As Control
For Each ctl In Me.Controls
ctl.TabStop = False
Next
End Sub
ni untuk semua controls, pepandai ...
Yaya, this sound to be work |
|
|
|
|
|
|
sensasiii This user has been deleted
|
Originally posted by shahnazz at 10-7-2006 10:35 AM
cuba set TabIndex = 0 untuk semua controls
ehehehe thanks... jadi pulak aku ikut cara ko ni.....
anyway...thanks pada yang lain.... |
|
|
|
|
|
|
| |
|