PC Review


Reply
Thread Tools Rate Thread

Calling ShowDialog on MouseDown event

 
 
fhunter
Guest
Posts: n/a
 
      30th Sep 2003
When detecting a mouseDown event in my application I
would like to display a dialog/form.
I can do this calling ShowDialog(), however this call
locks until the user click on ok or cancel in the dialog.
And it looks as if since I am calling ShowDialog() from
with in my OnMouseDown event the dialog never get a
OnMouseDown event and it never returns from ShowDialog().

If I call ShowDialog() from anywhere else in the code, it
works fine.

What would be the correct way to call a ShowDialog() when
an OnMouseDown event is detected?

Thank you

 
Reply With Quote
 
 
 
 
fhunter
Guest
Posts: n/a
 
      30th Sep 2003
Never mind, looks like it works fine using the OnMouseUp
event instead of OnMouseDown. So that's fine. Wish I knew
why though.

Thank you

>-----Original Message-----
>When detecting a mouseDown event in my application I
>would like to display a dialog/form.
>I can do this calling ShowDialog(), however this call
>locks until the user click on ok or cancel in the

dialog.
>And it looks as if since I am calling ShowDialog() from
>with in my OnMouseDown event the dialog never get a
>OnMouseDown event and it never returns from ShowDialog().
>
>If I call ShowDialog() from anywhere else in the code,

it
>works fine.
>
>What would be the correct way to call a ShowDialog()

when
>an OnMouseDown event is detected?
>
>Thank you
>
>.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MouseDown and ShowDialog wavemill Microsoft Dot NET Compact Framework 1 14th Apr 2005 07:02 PM
Dangling process, when calling ShowDialog twice from Main Tim_Mac Microsoft Dot NET Framework Forms 3 31st Mar 2005 10:54 AM
Calling Dispose() after ShowDialog() Steve Austin Microsoft Dot NET Framework Forms 3 24th Jun 2004 03:57 PM
warning BC40004: sub 'MouseDown' conflicts with event 'MouseDown' in the base class 'Control' Rob Microsoft VB .NET 2 14th May 2004 10:21 PM
'System.MissingMethodException' when calling function from Mousedown Event?? PocketDeveloper Microsoft Dot NET Compact Framework 3 2nd Apr 2004 10:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:23 PM.