This is simple yet I cannot find anything on it for C#..
Here it goes..
How do I display a webpage in a c# windows application?
what i have is a c# based application and i am trying to load a webform.aspx file from a server... any ideas?
i am able to send the request.. and get data back.. and then dump its raw content into a richtextbox and what not.. but i need it to interpret the page .. not just in raw data..
is there a formatter? encoder? decoder? any ideas?
thanks
daniel rodriguez
[email protected]
Comments
: This is simple yet I cannot find anything on it for C#..
:
: Here it goes..
:
: How do I display a webpage in a c# windows application?
:
: what i have is a c# based application and i am trying to load a webform.aspx file from a server... any ideas?
:
: i am able to send the request.. and get data back.. and then dump its raw content into a richtextbox and what not.. but i need it to interpret the page .. not just in raw data..
:
: is there a formatter? encoder? decoder? any ideas?
:
:
: thanks
:
: daniel rodriguez
:
: [email protected]
:
First u need the .dll for this
using AxSHDocVw;
then..
private AxWebBrowser mybrowsercontrol;
this.mybrowsercontrol = new AxWebBrowser();
mybrowsercontrol.BeginInit();
// do your gui stuff or whatever here
and then
mybrowsercontrol.EndInit();
mybrowsercontrol.RegisterAsBrowser = true;
mybrowsercontrol.RegisterAsDropTarget = true;
mybrowsercontrol.Silent = false;
to display a page
Object o = null;
mybrowsercontrol.Navigate("http://www.whatever.com", ref o, ref o, ref o, ref o);
not sure if this makes sense to you.. i hope it does but if you have any problems let me know
i just finished writing my own browser so i kinda know this stuff.. hehe
Ivo