Results 1 to 3 of 3

Thread: Popup anything

  1. #1

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394

    Popup anything

    Hello,

    I need a popup treeview or listbox when a user presses( types ) a special key. I cant get the position to work. The listbox appears in a completely opposite direction. Does anyone know how to make the listbox popup when the user types ";" for example in THE exact postion where ";" was typed.


    Thanks a lot for help,
    VS.NET 2003

    Need to email me?

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Use the GetCaretPos API :

    VB Code:
    1. Declare Function GetCaretPos Lib "user32" Alias "GetCaretPos" (lpPoint As POINTAPI) As Long
    2.  
    3. Type POINTAPI
    4.         x As Long
    5.         y As Long
    6. End Type
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394

    Thumbs up

    Ok thanks that works well
    VS.NET 2003

    Need to email me?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width