Audition Viêt Nam Forum

Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.

Thế Giới Audition


    [Code] Làm hotkey 1 nút để show + hide Form

    Southern
    Southern
    Admin
    Admin


    Tổng số bài gửi : 61
    Join date : 22/03/2011
    Age : 29
    Đến từ : Châu Đốc - An Giang

    [Code] Làm hotkey 1 nút để show + hide Form Empty [Code] Làm hotkey 1 nút để show + hide Form

    Bài gửi by Southern Sat Mar 26, 2011 5:04 am

    tạo 1 form rồi để Visible = True . Rồi tạo 1 timer có Interval = 700



    Mã:
    Code:
    [/color][color=blue]Dim KeyResult As Long
    KeyResult = GetAsyncKeyState(vbKeyInsert)
    If KeyResult = -32767 And Me.Visible = True Then
    Form1.Visible = False
    Exit Sub
    End If
    If KeyResult = -32767 And Me.Visible = False Then
    Form1.Visible = True
    Exit Sub
    End If[/color][color=blue]

    Trong đó " -32767 " là Hex của key Insert ai mún tìm thêm hotkey thì đi lên gu gồ nha

      Hôm nay: Thu Sep 19, 2024 10:18 am