CariDotMy

 Forgot password?
 Register

ADVERTISEMENT

View: 2840|Reply: 7

disable TAB kat VB

[Copy link]
sensasiii This user has been deleted
Post time 9-7-2006 02:07 AM | Show all posts |Read mode
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...
Reply

Use magic Report


ADVERTISEMENT


eddom This user has been deleted
Post time 10-7-2006 09:20 AM | Show all posts
i think you have to use the window API to disable it

[ Last edited by  eddom at 10-7-2006 09:22 AM ]
Reply

Use magic Report

Post time 10-7-2006 10:35 AM | Show all posts
cuba set TabIndex = 0 untuk semua controls
Reply

Use magic Report

eddom This user has been deleted
Post time 10-7-2006 01:07 PM | Show all posts
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
Reply

Use magic Report

Post time 10-7-2006 02:36 PM | Show all posts
try guna kaedah nih:


  1. Private Sub Form_Load()

  2.     Dim ctl As Control
  3.     For Each ctl In Me.Controls
  4.         ctl.TabStop = False
  5.     Next

  6. End Sub
Copy the Code


ni untuk semua controls, pepandai la buat if-else to select kalau control tu is a text box...
Reply

Use magic Report

eddom This user has been deleted
Post time 10-7-2006 07:15 PM | Show all posts
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
Reply

Use magic Report

Follow Us
sensasiii This user has been deleted
 Author| Post time 10-7-2006 10:07 PM | Show all posts
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....
Reply

Use magic Report

Post time 11-7-2006 06:18 PM | Show all posts
no problem
Reply

Use magic Report


ADVERTISEMENT


You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT


Forum Hot Topic

 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CariDotMy

28-12-2024 11:45 PM GMT+8 , Processed in 1.160277 second(s), 22 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list