By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,299 Members | 1,347 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,299 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
* "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 discussion thread is closed

Replies have been disabled for this discussion.