Results 1 to 3 of 3

Thread: Can you use a component when just using a module?

  1. #1

    Thread Starter
    Hyperactive Member wordracr's Avatar
    Join Date
    Aug 2001
    Posts
    281

    Can you use a component when just using a module?

    I'm planning on using merrion's hotkey control to do [something] when the hotkey is pressed.

    Is there a way that I can use it's HotkeyPressed event and have the app "loop" so it doesn't exit right away?

  2. #2
    Fanatic Member pax's Avatar
    Join Date
    Mar 2001
    Location
    Denmark
    Posts
    840
    Hi.

    I guess you could do something like this:
    VB Code:
    1. Private WithEvents MyComp as WhatEverComp
    2.  
    3. Public Sub Main
    4. MyComp = New WhatEverComp()
    5.  
    6. While bExitApp=False
    7.   Application.DoEvents()
    8. End While
    9.  
    10. End Sub
    I wish I could think of something witty to put in my sig...

    ...Currently using VS2013...

  3. #3

    Thread Starter
    Hyperactive Member wordracr's Avatar
    Join Date
    Aug 2001
    Posts
    281
    k Thanks!.

    I just wasn't sure if I form was required or not.

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