473,473 Members | 2,102 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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)
ruca
Nov 18 '05 #1
10 1402
look here :

http://lab.msdn.microsoft.com/expres...p/default.aspx
http://www.devhood.com/tutorials/tut...utorial_id=312

HTH

Konrad

"ruca" <ru***@iol.pt> wrote in message
news:%2****************@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

Nov 18 '05 #2
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/default...b;EN-US;311284

mshtml
http://msdn.microsoft.com/library/de...ng/hosting.asp

I hope this helps a little bit?

Cor

Nov 18 '05 #3
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" <no**********@planet.nl> escreveu na mensagem
news:OH****************@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/default...b;EN-US;311284

mshtml
http://msdn.microsoft.com/library/de...ng/hosting.asp
I hope this helps a little bit?

Cor

Nov 18 '05 #4
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?

Nov 18 '05 #5
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" <no**********@planet.nl> escreveu na mensagem
news:uQ*************@TK2MSFTNGP14.phx.gbl...
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?


Nov 18 '05 #6
Not that I know
"ruca"
I can't do nothing about this?

Nov 18 '05 #7

"ruca" <ru***@iol.pt> wrote in message
news:%2****************@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.
Nov 18 '05 #8
JD
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" <ru***@iol.pt> wrote in message
news:%2****************@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" <no**********@planet.nl> escreveu na mensagem
news:uQ*************@TK2MSFTNGP14.phx.gbl...
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?



Nov 18 '05 #9
How can I do that?

"JD" <no@address.org> escreveu na mensagem
news:%2****************@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" <ru***@iol.pt> wrote in message
news:%2****************@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" <no**********@planet.nl> escreveu na mensagem
news:uQ*************@TK2MSFTNGP14.phx.gbl...
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?
>



Nov 18 '05 #10
JD
As an example....

In your body tag of your web page you could do:

<body MyVar=<%= Session("MyVar") %> >
Then your windows form do:

Private Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.AxWebBrowser1.Navigate2("http://localhost/MySite/WebForm1.aspx")
End Sub

Private Sub AxWebBrowser1_DocumentComplete(ByVal sender As Object, ByVal
e As AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent ) Handles
AxWebBrowser1.DocumentComplete
Dim S3 As String =
CType(AxWebBrowser1.Document.body.getAttribute("My Var"), String)
End Sub
But you don't have to do just the body tag attribute, you could do this as
hidden input, xml tag, etc....
"ruca" <ru***@iol.pt> wrote in message
news:OY*************@TK2MSFTNGP11.phx.gbl...
How can I do that?

"JD" <no@address.org> escreveu na mensagem
news:%2****************@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" <ru***@iol.pt> wrote in message
news:%2****************@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" <no**********@planet.nl> escreveu na mensagem
news:uQ*************@TK2MSFTNGP14.phx.gbl...
> 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?
> >
>
>



Nov 18 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Martin | last post by:
Again drawing on the groups experience:- 1. For general file opening and file saving, using VB6, are there any issues with using the FileOpen and FileSave Common Dialog Boxes? 2. Is using the...
6
by: mscir | last post by:
I just installed ASP after a couple of years of not using it, PWS Win 98 SE. A couple of things are throwing me, and I can't remember whether these worked in the past. One is I can't...
1
by: William Starr Moake | last post by:
Another problem with the browser-based WYSIWYG editor I'm trying to assemble using IE's design mode. This opens the selected page in the editor iframe named iView: <select name="template"...
1
by: Jonatan | last post by:
Hi all, I'm trying to upload files doing something like gmail. I almost got it but I have a problem when I post the form. Basicaly, I am doing the following. When the user presses the link...
4
by: Dave N | last post by:
I want to programatically open the Access "File" "Open" browse box to search for a file. When it is selected I wnat to have it put the path in a text box so it can be added to a list box.
10
by: PeterW | last post by:
I find in the last 3/4 days that I can't open web applications using VS.net 1.1 for enterprise architiect. The project I am currently working on just refuses to open and hangs. I try using IIS...
6
by: Daniel | last post by:
Hi all, Can i open and edit the excel sheet on web page after downloading? After editing, i close the web page and the excel file auto upload to the server. Is it possible? I really struggling...
1
by: SAL | last post by:
Hello, Has anyone use the Open File Dialog Box in ASP.net? I know you can add the HTML File Field control to your ASP page and it will open the File Dialog Box for you. However, I would like...
7
by: jonathandrott | last post by:
sorry newbie question probably. i'm trying to open an specific folder. open each file with in the folder individually and process each one. all the processing code has been written. i'm looking...
4
by: rdemyan | last post by:
I'm using code from the following web page to open the API Browse Folder dialog http://www.mvps.org/access/api/api0002.htm It all works fine. But if the dialog box is open and the user closes...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.