•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 391,982 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,166 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser:
Views: 748 | Replies: 4 | Solved
![]() |
•
•
Join Date: May 2008
Posts: 11
Reputation:
Rep Power: 1
Solved Threads: 2
Unfortunately Microsoft forgot to put in the e.Handled on a mouse event.
If you would like, you can create your own Class do deal with this. Then you just use e.Handled = True (on the TabControl MouseDown for example) and the mouse click will not get fired. I copied the code below for you:
If you would like, you can create your own Class do deal with this. Then you just use e.Handled = True (on the TabControl MouseDown for example) and the mouse click will not get fired. I copied the code below for you:
Public Class MouseEventArgs
Inherits System.Windows.Forms.MouseEventArgs
Private _mHandled As Boolean
''' <param name="button">One of the System.Windows.Forms.MouseButtons
''' values indicating which mouse button was pressed.</param>
''' <param name="clicks">The number of times a mouse button was pressed.</param>
''' <param name="x">The x-coordinate of a mouse click, in pixels.</param>
''' <param name="y">The y-coordinate of a mouse click, in pixels.</param>
''' <param name="delta">A signed count of the number
''' of detents the wheel has rotated.</param>
<DebuggerHidden()> _
Sub New(ByVal button As MouseButtons, _
ByVal clicks As Integer, _
ByVal x As Integer, _
ByVal y As Integer, _
ByVal delta As Integer)
MyBase.New(button, clicks, x, y, delta)
Me._mHandled = False
End Sub
''' <summary>
''' Gets or sets a value indicating whether the event was handled.
''' </summary>
Public Property Handled() As Boolean
<DebuggerHidden()> _
Get
Return Me._mHandled
End Get
<DebuggerHidden()> _
Set(ByVal value As Boolean)
Me._mHandled = value
End Set
End Property
End Class![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb VB.NET Marketplace
Similar Threads
- Open In New Window Php (PHP)
- this compagny change my background (Viruses, Spyware and other Nasties)
- Screen Saver is inoperative (Windows NT / 2000 / XP / 2003)
- disable/enable network access to folders (Windows NT / 2000 / XP / 2003)
- How to remove infected items from your _Restore folder (Viruses, Spyware and other Nasties)
- Internet Explorer always on top (Web Browsers)
- 100% CPU Usage - No Virus, No gaming (Windows NT / 2000 / XP / 2003)
- never taught how to show the VAT of a total. I know that u divide by 1.175 (Visual Basic 4 / 5 / 6)
- Help: Weird Hard drive space flucuation? (Windows NT / 2000 / XP / 2003)
Other Threads in the VB.NET Forum
- Previous Thread: Program loses response during large DB queries VB.NET
- Next Thread: VB Script? or other?


Linear Mode