Home » Category » Microsoft Visual Basic

Microsoft Visual Basic: -- Event handler not firing in VB --

205| Mon, 02 Jun 2008 09:51:00 GMT| anonymous| Comments (3)
Hi,

I have a VB application which triggers a callback function
whenever it gets a event (WM_USER + 1) It works fine under
normal conditions.

But if I display a dialog box (modal dialog box) the event
does not fire the callback in a timely fashion and I miss
to catch some events. But a non-modal dialog box works
fine.

Is this normal in VB ? If so is there any other decent way
of making this work ?

Regards
Mani

Keywords & Tags: event, handler, firing, vb, microsoft, visual basic

URL: http://www.programmerbase.com/visual-basic/6/
 
«« Prev - Next »» 3 helpful answers below.
From the MSDN
modal
Describes a window or dialog box that requires the user to
take some action before the focus can switch to another
form or dialog box.

modeless
Describes a window or dialog box that does not require
user action before the focus can be switched to another
form or dialog box.

>--Original Message--
>Hi,
>I have a VB application which triggers a callback
function
>whenever it gets a event (WM_USER + 1) It works fine
under
>normal conditions.
>But if I display a dialog box (modal dialog box) the
event
>does not fire the callback in a timely fashion and I miss
>to catch some events. But a non-modal dialog box works
>fine.
>Is this normal in VB ? If so is there any other decent
way
>of making this work ?
>Regards
>Mani
>.
>

feddie | Mon, 02 Jun 2008 09:53:00 GMT |

"Mani Subramanian" <manikandansp...hotmail.com> wrote in message news:06b801c3814f$73bf1d10$a401280a...phx.gbl...
> Is this normal in VB ? If so is there any other decent way
> of making this work ?

This is a bug in vb6, it goes away once compiled.
--
Michael Culley

michael | Mon, 02 Jun 2008 09:54:00 GMT |

Thank you a lot guys.

They are valuable links !!...

Yes, as per the suggestion I compiled it to be a EXE and
it works fine. The bug is there only when I run through
the IDE...

It would have been difficult without this suggestion.
Thank you for saving my day...

Cheers
Mani

mani | Mon, 02 Jun 2008 09:55:00 GMT |

Microsoft Visual Basic Hot Answers

Microsoft Visual Basic New questions

Microsoft Visual Basic Related Categories