Friday, March 16, 2012

Open Browse

Hi,
Can anyone tell me if I can open a WebForm inside a WinForm? How? Give me
examples, please.
I have a winform application and I want that in some items opens a browser
inside.
Can you help?
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
rucalook here :
http://lab.msdn.microsoft.com/expre...lt.asp
x
http://www.devhood.com/tutorials/tu...tutorial_id=312
HTH
Konrad
"ruca" <ruuca@.iol.pt> wrote in message
news:%23gt9zoYlEHA.3988@.tk2msftngp13.phx.gbl...
> Hi,
> Can anyone tell me if I can open a WebForm inside a WinForm? How? Give me
> examples, please.
> I have a winform application and I want that in some items opens a browser
> inside.
> Can you help?
>
> --
> Programming ASP.NET with VB.NET
> Thank's (if you try to help me)
> Hope this help you (if I try to help you)
> ruca
>
Ruca,
A little example,
Open a new windows application project
In the toolbox rightclick and select add/Remove items
In the customize toolbox select Com and in that Microsoft Webbrowser
When that is in the toolbox drag it to your form
Drag also a button to your form.
Then this code and you have a mini Webbrowser.
\\\
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.AxWebBrowser1.Navigate2("www.google.com")
End Sub
//
Some links
webbrowser
http://support.microsoft.com/?kbid=311303
some faqs
http://support.microsoft.com/defaul...kb;EN-US;311284
mshtml
http://msdn.microsoft.com/library/d...in
g.asp
I hope this helps a little bit?
Cor
In some pages I use Session variables. Can I pass values for that session
variables? How?
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca
"Cor Ligthert" <notfirstname@.planet.nl> escreveu na mensagem
news:OH$w%23xYlEHA.3756@.TK2MSFTNGP11.phx.gbl...
> Ruca,
> A little example,
> Open a new windows application project
> In the toolbox rightclick and select add/Remove items
> In the customize toolbox select Com and in that Microsoft Webbrowser
> When that is in the toolbox drag it to your form
> Drag also a button to your form.
> Then this code and you have a mini Webbrowser.
> \\\
> Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles Button1.Click
> Me.AxWebBrowser1.Navigate2("www.google.com")
> End Sub
> //
> Some links
> webbrowser
> http://support.microsoft.com/?kbid=311303
> some faqs
> http://support.microsoft.com/defaul...kb;EN-US;311284
> mshtml
>
http://msdn.microsoft.com/library/d...ing/hosting.asp[col
or=darkred]
> I hope this helps a little bit?
> Cor
>
>[/color]
Ruca,
The session variables are Server Side using a webform in a windowform is
Client Side.
Cor

> In some pages I use Session variables. Can I pass values for that session
> variables? How?
>
So..............
I can't do nothing about this?
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca
"Cor Ligthert" <notfirstname@.planet.nl> escreveu na mensagem
news:uQPi4XZlEHA.952@.TK2MSFTNGP14.phx.gbl...
> Ruca,
> The session variables are Server Side using a webform in a windowform is
> Client Side.
> Cor
>
session
>
Not that I know
"ruca"
> I can't do nothing about this?
"ruca" <ruuca@.iol.pt> wrote in message
news:%23gt9zoYlEHA.3988@.tk2msftngp13.phx.gbl...

> Can anyone tell me if I can open a WebForm inside a WinForm? How? Give me
> examples, please.
> I have a winform application and I want that in some items opens a browser
> inside.
> Can you help?
If you're looking to go beyond simply providing browser functionality to
your app and instead make it a sort of mini-ASP.NET then more than likely
your application would have to host the CLR like Web Matrix does. I doubt
this would be an easy solution.
Well you could hide the server side session variable in the html document,
then retrieve it by using the AxWebBrowser1.Document and the DOM.
"ruca" <ruuca@.iol.pt> wrote in message
news:%23eBWzhZlEHA.1244@.TK2MSFTNGP15.phx.gbl...
> So..............
> I can't do nothing about this?
>
> --
> Programming ASP.NET with VB.NET
> Thank's (if you try to help me)
> Hope this help you (if I try to help you)
> ruca
> "Cor Ligthert" <notfirstname@.planet.nl> escreveu na mensagem
> news:uQPi4XZlEHA.952@.TK2MSFTNGP14.phx.gbl...
> session
>
How can I do that?
"JD" <no@.address.org> escreveu na mensagem
news:%23pVOwdblEHA.3968@.TK2MSFTNGP11.phx.gbl...
> Well you could hide the server side session variable in the html document,
> then retrieve it by using the AxWebBrowser1.Document and the DOM.
>
> "ruca" <ruuca@.iol.pt> wrote in message
> news:%23eBWzhZlEHA.1244@.TK2MSFTNGP15.phx.gbl...
is
>

0 comments:

Post a Comment