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

  • Thread starter Thread starter Rob
  • Start date Start date
R

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
 
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 said:
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
///
 
Back
Top