TIP: Click on subject to list as thread! ANSI
echo: visual_basic
to: All
from: Er
date: 2004-12-14 17:07:00
subject: Re: Dragging and dropping

"Kay"  wrote in message
news:d5a0572b.0409100742.6a848547{at}posting.google.com...
> How can you tell when soemone is trying to drop and web page into a
> web browser control?
>
> I have a test app that consists of a form with a webbrowser control in
> it. I have a shortcut to www.google.com on my desktop.
>
> When I run the test app and drag and drop the shortcut into the web
> browser control it goes to the www.google.com home page.
>
> I want to be able to intercept the page changing and stop it.
>
> Thanks
>
> Kay

See BeforeNavigate2 method of the WebBrowser control. It fires before a
Navigate attempt, as the name implies, you can cancel it by setting the
Cancel flag.

Er
---
þ RIMEGate(tm)/RGXPost V1.14 at BBSWORLD * Info{at}bbsworld.com

---
 * RIMEGate(tm)V10.2áÿ* RelayNet(tm) NNTP Gateway * MoonDog BBS
 * RgateImp.MoonDog.BBS at 12/14/04 5:07:33 PM
* Origin: MoonDog BBS, Brooklyn,NY, 718 692-2498, 1:278/230 (1:278/230)
SEEN-BY: 633/267 270 5030/786
@PATH: 278/230 10/345 106/1 2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.