[VB] Event not firing

Discussion in 'Mixed Languages' started by Muerto, Feb 21, 2016.

  1. Muerto

    Muerto MDL Debugger

    Mar 7, 2012
    1,817
    1,992
    60
    #1 Muerto, Feb 21, 2016
    Last edited: Jan 12, 2021
    ...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Michaela Joy

    Michaela Joy MDL Crazy Lady

    Jul 26, 2012
    4,081
    4,654
    150
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Muerto

    Muerto MDL Debugger

    Mar 7, 2012
    1,817
    1,992
    60
    #3 Muerto, Feb 22, 2016
    Last edited: Jan 12, 2021
    (OP)
    ...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Michaela Joy

    Michaela Joy MDL Crazy Lady

    Jul 26, 2012
    4,081
    4,654
    150
    Please remember that I'm not a VB programmer, so take my reply with a grain of salt. :)

    In my form code, (Yes...Delphi has forms too. :D ) I would put a message handler and in my startup code and I would post a windows message (WM_USER + XXXX) to indicate that it was safe to create / execute my thread. (The message handler would start the thread.)

    The other way (A little more complicated from a VB standpoint) would be to create a timer and start it when my initialization was complete. The OnTimer handler would execute the startup of the thread.

    Just some thoughts FWIW...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...