PC Review


Reply
Thread Tools Rate Thread

MouseEvent on Form

 
 
Colin McGuire
Guest
Posts: n/a
 
      3rd Dec 2003
Hi again - just another difficult question from me.

If I have a form with the following code in it:

Private Sub MouseUp(ByVal sender As Object,
ByVal e As System.Windows.Forms.MouseEventArgs)
Handles MyBase.MouseUp
MsgBox "MouseUp"
End Sub


I see a dialog box appearing with the content "MouseUp" in it upon
mouse button release. But if the mouse is released over the forms
border, the message box doesn't appear. If there a way to catch this
event, make the form border appear as though it were the form insides?

Thank you again
Colin
 
Reply With Quote
 
 
 
 
Armin Zingler
Guest
Posts: n/a
 
      3rd Dec 2003
"Colin McGuire" <(E-Mail Removed)> schrieb
> Hi again - just another difficult question from me.
>
> If I have a form with the following code in it:
>
> Private Sub MouseUp(ByVal sender As Object,
> ByVal e As System.Windows.Forms.MouseEventArgs)
> Handles MyBase.MouseUp
> MsgBox "MouseUp"
> End Sub
>
>
> I see a dialog box appearing with the content "MouseUp" in it upon
> mouse button release. But if the mouse is released over the forms
> border, the message box doesn't appear. If there a way to catch
> this event, make the form border appear as though it were the form
> insides?


I can not reproduce this (Framework 1.1 on WinXP). I get the event no matter
whether the cursor is over the client area of the Form, over the border or
outside the Form.


--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      3rd Dec 2003
* (E-Mail Removed) (Colin McGuire) scripsit:
> Hi again - just another difficult question from me.
>
> If I have a form with the following code in it:
>
> Private Sub MouseUp(ByVal sender As Object,
> ByVal e As System.Windows.Forms.MouseEventArgs)
> Handles MyBase.MouseUp
> MsgBox "MouseUp"
> End Sub
>
>
> I see a dialog box appearing with the content "MouseUp" in it upon
> mouse button release. But if the mouse is released over the forms
> border, the message box doesn't appear. If there a way to catch this
> event, make the form border appear as though it were the form insides?


<http://www.mvps.org/dotnet/dotnet/samples/codingtechnique/downloads/Subclassing.zip>

Watch for 'Private Const WM_NCLBUTTONUP As Int32 = &HA2'.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
 
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
Re: Temporary Form with 2 Sub form Update Main Form And its Sub form ? Jeanette Cunningham Microsoft Access Form Coding 0 25th Nov 2009 03:27 AM
Link for sub form on form to sub form in same form billybanter67 Microsoft Access Forms 2 24th May 2008 09:32 AM
Company Form which opens a Client form and returns the client idto the COmpany form Michael C. Blair Microsoft Access 1 4th Dec 2004 07:00 AM
DataGrid and MouseEvent Problem Thomas Bednarz Microsoft Dot NET Compact Framework 0 21st Sep 2004 04:44 PM
RE: TextBox MouseEvent Not Fired On ScrollBars =?Utf-8?B?TWljaGVsIEhhcmR5?= Microsoft Dot NET Framework Forms 0 15th Jun 2004 07:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:10 PM.