473,473 Members | 2,080 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

warning BC40004: sub 'MouseDown' conflicts with event 'MouseDown' in the base class 'Control'

Rob
How can I fix the following warning

warning BC40004: sub 'MouseDown' conflicts with event 'MouseDown'
in the base class 'Control' and so should be declared 'Shadows'.

This warning appears because I entered the following Sub
Private Sub MouseDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) _

Handles AxWebBrowser1.MouseDown

End Sub

TIA Robert
Nov 20 '05 #1
2 3551
change the sub to be

Pirvate Sub onMouseDown(sender as object, e as
System.Windows.Forms.MouseEventArgs)

How does an ActiveX control expose a .NET Class?
(system.windows.forms.MouseEventArgs)
"Rob" <rl*****@worldnet.att.net> wrote in message
news:Os**************@TK2MSFTNGP11.phx.gbl...
How can I fix the following warning

warning BC40004: sub 'MouseDown' conflicts with event 'MouseDown'
in the base class 'Control' and so should be declared 'Shadows'.

This warning appears because I entered the following Sub
Private Sub MouseDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) _

Handles AxWebBrowser1.MouseDown

End Sub

TIA Robert

Nov 20 '05 #2
* "Rob" <rl*****@worldnet.att.net> scripsit:
warning BC40004: sub 'MouseDown' conflicts with event 'MouseDown'
in the base class 'Control' and so should be declared 'Shadows'.

This warning appears because I entered the following Sub
Private Sub MouseDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) _

Handles AxWebBrowser1.MouseDown


\\\
Private Sub AxWebBrowser1_MouseDown(...) Handles AxWebBrowser1.MouseDown
...
End Sub
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: tomek | last post by:
Can anybody explain why can I not get rid of the above message in the following class definition? Thank you in advance. class BasicMidReader : public TMemoryStream { //some private date...
2
by: JJ | last post by:
Hi All, I need to create a MouseDown event for a picture box . Am I doing the following right? pictureBox.MouseDown += new System.WinForms.MouseEventHandler(pictureBox_MouseDown) Then
0
by: Josh | last post by:
Hi, I am trying to capture the MouseDown event over a 3rd-party control (a streaming video screen). I am trying to draw a rubberbanding rectangle over an area of the streaming screen (which...
6
by: crk2 | last post by:
Here a simple one. (At least I think it is?) and any help would be truly appreciated. I have an inherited textbox on my form based on a custom texbox control. It looks something like this ...
1
by: Merlin | last post by:
I have created a UserControl which has a label; what I wish to do is place this UserControl on a form and then trap the Mouse Down event, whenever someone clicks my control. My problem is that the...
2
by: James Wong | last post by:
Hi! everybody, I want my control to have different behavior if it got focus by mouse click from by keyboard (i.e. Tab or Shift-Tab). I found that GotFocus event always comes before MouseDown...
7
by: Brad | last post by:
I have several labels and textboxes that are drawn to a tab page based on certain criteria so these labels and textboxes can be drawn at different points on the tab page. I set the label and...
2
by: Terry | last post by:
Hi, I copied the following code segment from the VS2005 Help on the MouseDown event. Private Sub panel1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles...
4
by: Stewart Berman | last post by:
Is there a control equivalent to the old Spin control? The one with two hour heads and an optional textbox in the middle? The closest I can find is the NumericUpDown control and it's not the same...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.