Page 1 of 2
webbrowser form link?
Posted: Sun Aug 05, 2012 1:09 pm
by Dummy1912
Hello,
anybody knows how to make a link that opens a form
i don't mean a http:
but a form from vb.net itself
lets say i want to open menu.vb
how can i use this in a webbrowser link?
example:
Code: Select allopens menu <a href="menu"> press here</a>
so when they press here it must open the menu.vb
can't find anything on the web.
thanks
Re: webbrowser form link?
Posted: Sun Aug 05, 2012 3:05 pm
by mandai
If you are hosting a web server within a VB.Net application you could add this kind of feature.
Re: webbrowser form link?
Posted: Sun Aug 05, 2012 3:42 pm
by Dummy1912
hello mandai,
well i really have no idea how to do this :(
any help?
Re: webbrowser form link?
Posted: Sun Aug 05, 2012 7:37 pm
by mandai
There is a sample here that acts as a HTTP server:
viewtopic.php?f=70&t=8235
The source may be useful.
Re: webbrowser form link?
Posted: Sun Aug 05, 2012 9:23 pm
by Dummy1912
thanks
but seems its no use for me what i want to reach.
it don't has any control what im looking for in this sample :(
Re: webbrowser form link?
Posted: Sun Aug 05, 2012 10:00 pm
by Filip
I think that he wants that when user clicks on a link in webbrowser control, something happens on form..
Re: webbrowser form link?
Posted: Sun Aug 05, 2012 10:29 pm
by muttley1968
if your using asp.net to build the site then you can simply pass paramitors from one to the other like with a program :P
Re: webbrowser form link?
Posted: Sun Aug 05, 2012 10:37 pm
by Codex
Re: webbrowser form link?
Posted: Sun Aug 05, 2012 10:47 pm
by Dummy1912
Codex wrote:I love Google don't you ?
cryer; that hurts you know
its seems like you are telling that i dont even search cryer;
i search all the time
and to be honest i don't like google that much ... why? well it keep you busy for hours to find anything you looking for.
Re: webbrowser form link?
Posted: Mon Aug 06, 2012 1:09 am
by CodenStuff
Im not 100% sure what it is you are asking for but if you mean you have a form with a webbrowser control on it and when the user clicks the link in that webbrowser control you want to open another form say form2...if thats what you are asking for then maybe something as simple using the webbrowser navigation event will do the job like:
Code: Select all Private Sub WebBrowser1_Navigating(sender As Object, e As WebBrowserNavigatingEventArgs) Handles WebBrowser1.Navigating
If e.Url.ToString = "Menu" Then
e.Cancel = True
'Add code to display form or whatever
End If
End Sub
Yes/No? :?