AdorableVB
AdorableVB

Reputation: 1393

how to disable mouse/mouse clicks inside a web Browser control?

I am creating my personal DVR program instead of using the one in the package. my problem is, I want to disable the mouse because whenever I click it in the camera feed (webBrowser control), it enlarges/zooms and it overflows the fixed size of the form I want. can I disable that? so it will stay to the size that I want.

I already used this

web.IsWebBrowserContextMenuEnabled = False
web.AllowWebBrowserDrop = False

I have put it in Form_Load, it does disable the clicks.. but after i click it once.. help

Upvotes: 1

Views: 2025

Answers (1)

noseratio
noseratio

Reputation: 61656

See if the following does what you're after:

CType(web, System.Windows.Forms.Control).Enabled = False

Upvotes: 1

Related Questions