Showing Forms from within Form_MouseDown

M

Max Bolingbroke

Hi,

No sooner have I overcome an issue with bitmaps (thanks guys!) than I
run into this new one: I'm trying to show a form (modally) from within a
MouseDown event, but for some reason doing so causes the form to be
unable to respond to user input. This is to say, there are buttons on
the new form that I should be able to click but when I do so there is
absolutely no reaction. These same forms work fine when ShowDialog is
invoked on them outside of this event.

I suspect this is something to do with threads, but I'm no expert on
that topic.. can anyone suggest how I might fix this issue?

Thanks in advance!

Max Bolingbroke
 
M

Max Bolingbroke

Max said:
Hi,

No sooner have I overcome an issue with bitmaps (thanks guys!) than I
run into this new one: I'm trying to show a form (modally) from within a
MouseDown event, but for some reason doing so causes the form to be
unable to respond to user input. This is to say, there are buttons on
the new form that I should be able to click but when I do so there is
absolutely no reaction. These same forms work fine when ShowDialog is
invoked on them outside of this event.

I suspect this is something to do with threads, but I'm no expert on
that topic.. can anyone suggest how I might fix this issue?

Thanks in advance!

Max Bolingbroke

Thanks to a suggestion to David Pope given by email, I've managed to
work around the issue by using the MouseUp event instead. It's not
perfect, since I'd prefer to use MouseDown, but at least it does
actually work this way...

Max Bolingbroke
 
S

Serg Kuryata [MS]

Hello, Max

This is a know issue in the .NET Compact Framework v1.0. It has been fixed
in v2.0.

Thank you,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Date: Sun, 20 Mar 2005 18:21:31 +0000
| From: Max Bolingbroke <[email protected]>
| User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5)
Gecko/20041208 Thunderbird/1.0 - [MOOX M3] Mnenhy/0.6.0.104
| X-Accept-Language: en-us, en
| MIME-Version: 1.0
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Subject: Re: Showing Forms from within Form_MouseDown
| References: <[email protected]>
| In-Reply-To: <[email protected]>
| Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| Content-Transfer-Encoding: 7bit
| Lines: 24
| Message-ID: <[email protected]>
| Organization: Zen Internet
| NNTP-Posting-Host: 82.68.176.166
| X-Trace: 1111342889 cockburn.zen.co.uk 32612 82.68.176.166:37403
| X-Complaints-To: (e-mail address removed)
| Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.
sul.t-online.de!t-online.de!npeer.de.kpn-eurorings.net!dedekind.zen.co.uk!ze
n.net.uk!fuller.zen.co.uk!cockburn.zen.co.uk.POSTED!not-for-mail
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.compactframework:73667
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Max Bolingbroke wrote:
| > Hi,
| >
| > No sooner have I overcome an issue with bitmaps (thanks guys!) than I
| > run into this new one: I'm trying to show a form (modally) from within
a
| > MouseDown event, but for some reason doing so causes the form to be
| > unable to respond to user input. This is to say, there are buttons on
| > the new form that I should be able to click but when I do so there is
| > absolutely no reaction. These same forms work fine when ShowDialog is
| > invoked on them outside of this event.
| >
| > I suspect this is something to do with threads, but I'm no expert on
| > that topic.. can anyone suggest how I might fix this issue?
| >
| > Thanks in advance!
| >
| > Max Bolingbroke
|
| Thanks to a suggestion to David Pope given by email, I've managed to
| work around the issue by using the MouseUp event instead. It's not
| perfect, since I'd prefer to use MouseDown, but at least it does
| actually work this way...
|
| Max Bolingbroke
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top