|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
WebBrowser control problemHi
I have two webbrowser controls on my form web1 and web2. I load some HTML in web1, and that HTML file contains links. How to make following thing - when i click on link in web1 control, to load content (loacal file) associated with that link in web2 kontrol. second question... how can i open let's say frmExample when i click a link in HTML file "Example" and frmMultimedia when i click "Multimedia"? Please, I'm trying to solve this problmes, but i don't have ide what to do next... Thank you in advance On 05/01/2005 Vibor Cipan wrote:
> Hi Trap the NavigateComplete2 event for web1:> > I have two webbrowser controls on my form web1 and web2. I load some > HTML in web1, and that HTML file contains links. How to make > following thing - when i click on link in web1 control, to load > content (loacal file) associated with that link in web2 kontrol. private void Web1_NavigateComplete2(object sender, AxSHDocVw.DWebBrowserEvents2_NavigateComplete2Event e) { object obPath = e.uRL; object obNull = null; Web2.Navigate2(ref obPath, ref obNull, ref obNull, ref obNull, ref obNull); } > second question... how can i open let's say frmExample when i click a I would thin you need to set the links to point to the executable, I> link in HTML file "Example" and frmMultimedia when i click > "Multimedia"? think then when you click you will get the usual option to run or save the file. Somebody else may have a better idea though. Hi Jeff,
Can u please respond to my mail, since i don't know ur email addres Thank You! Vibor "Jeff Gaines" <whitedragon@newsgroup.nospam> je napisao u poruci interesnoj grupi:xn0dwxk875lo83***@news.microsoft.com...Show quoteHide quote > On 05/01/2005 Vibor Cipan wrote: > >> Hi >> >> I have two webbrowser controls on my form web1 and web2. I load some >> HTML in web1, and that HTML file contains links. How to make >> following thing - when i click on link in web1 control, to load >> content (loacal file) associated with that link in web2 kontrol. > > Trap the NavigateComplete2 event for web1: > > private void Web1_NavigateComplete2(object sender, > AxSHDocVw.DWebBrowserEvents2_NavigateComplete2Event e) > { > object obPath = e.uRL; > object obNull = null; > Web2.Navigate2(ref obPath, ref obNull, ref obNull, ref obNull, ref > obNull); > } > > >> second question... how can i open let's say frmExample when i click a >> link in HTML file "Example" and frmMultimedia when i click >> "Multimedia"? > > I would thin you need to set the links to point to the executable, I > think then when you click you will get the usual option to run or save > the file. > Somebody else may have a better idea though. > > -- > Jeff Gaines > Posted with XanaNews 1.17.1.2 http://www.wilsonc.demon.co.uk/delphi.htm
Show quote
Hide quote
"Vibor Cipan" <ci***@ifs.hr> wrote in message You need to implement the OnBeforeNavigate event handler in your form. Thisnews:crhofu$d73$1@bagan.srce.hr... > Hi > > I have two webbrowser controls on my form web1 and web2. I load some HTML in > web1, and that HTML file contains links. How to make following thing - when > i click on link in web1 control, to load content (loacal file) associated > with that link in web2 kontrol. > > second question... how can i open let's say frmExample when i click a link > in HTML file "Example" and frmMultimedia when i click "Multimedia"? > > Please, I'm trying to solve this problmes, but i don't have ide what to do > next... > > Thank you in advance will give you the URL that has been clicked and you have the opportunity to cancel the navigation. You will need to capture the click on a link from your first window, respond to it in your other window and then cancel the navigation in your first window. Hope this helps, Brian www.cryer.co.uk/brian
Show quote
Hide quote
"Brian Cryer" <bri***@127.0.0.1.activesol.co.uk> wrote in message Sorry, its BeforeNavigate2 - OnBeforeNavigate was in my mind from my Delphinews:1105012063.24737.0@ersa.uk.clara.net... > "Vibor Cipan" <ci***@ifs.hr> wrote in message > news:crhofu$d73$1@bagan.srce.hr... > > Hi > > > > I have two webbrowser controls on my form web1 and web2. I load some HTML > in > > web1, and that HTML file contains links. How to make following thing - > when > > i click on link in web1 control, to load content (loacal file) associated > > with that link in web2 kontrol. > > > > second question... how can i open let's say frmExample when i click a link > > in HTML file "Example" and frmMultimedia when i click "Multimedia"? > > > > Please, I'm trying to solve this problmes, but i don't have ide what to do > > next... > > > > Thank you in advance > > You need to implement the OnBeforeNavigate event handler in your form. This > will give you the URL that has been clicked and you have the opportunity to > cancel the navigation. You will need to capture the click on a link from > your first window, respond to it in your other window and then cancel the > navigation in your first window. > > Hope this helps, > > Brian > > www.cryer.co.uk/brian stuff. Please do not crosspost questions between .NET and non-.NET groups unless
your question actually pertains to both versions of VB. The *.vb.* groups are for VB6 and earlier. "Jeff Johnson [MVP: VB]" <i.get@enough.spam> je napisao u poruci interesnoj grupi:uaJh8cA9EHA.2***@TK2MSFTNGP14.phx.gbl...> Please do not crosspost questions between .NET and non-.NET groups unless OK, My fault, won't happen again :-)> your question actually pertains to both versions of VB. The *.vb.* groups > are for VB6 and earlier. Check out http://www.hsv-life.com/fordsoft/HTMLfileViewer.zip
NFord Show quoteHide quote "Vibor Cipan" <ci***@ifs.hr> wrote in message news:crhofu$d73$1@bagan.srce.hr... > Hi > > I have two webbrowser controls on my form web1 and web2. I load some HTML > in web1, and that HTML file contains links. How to make following thing - > when i click on link in web1 control, to load content (loacal file) > associated with that link in web2 kontrol. > > second question... how can i open let's say frmExample when i click a link > in HTML file "Example" and frmMultimedia when i click "Multimedia"? > > Please, I'm trying to solve this problmes, but i don't have ide what to do > next... > > Thank you in advance >
Cascade updates on primary keys..
best way to retrieve thousands of records. Many-to-many relation in a datagrid... retrieve records from sqlserver w/ where clause How to code incremental search Is it possible to enable/disable scripting in IE programmatically? Combobox with many values Problem with FileSystemWatcher/Tray Notifier App GridLineStyle Datagrid EndCurrentEdit problem... |
|||||||||||||||||||||||