Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / August 2007

Tip: Looking for answers? Try searching our database.

C# open InternetExplorer ####NEWBIE QUESTION###

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WolfgangD - 27 Aug 2007 13:31 GMT
Hi,
I am new in C# and MS programming.

I created a simple  windows form .
In this form is a button  and a text field.
the user should enter an ip-adress into the textfield ...and if he
clicks on the button a new Internet explorer windows should vome up
with the ip adress information (http://10.x.x.x) he entered in the
text field.

How can I realise this ?

Thanks a lot!
Yaron Karni - 27 Aug 2007 13:54 GMT
usign web explorer component (ctrl+alt +x), then using the navigate method,
send the ip to there and it all show  up.
Signature

Sincerely
Yaron Karni
http://dotnetbible.blogspot.com/

> Hi,
> I am new in C# and MS programming.
[quoted text clipped - 9 lines]
>
> Thanks a lot!
WolfgangD - 27 Aug 2007 14:37 GMT
> usign web explorer component (ctrl+alt +x), then using the navigate method,
> send the ip to there and it all show  up.
[quoted text clipped - 15 lines]
>
> > Thanks a lot!

Great,
I added a WebBrowser Element:

private void textBox1_TextChanged(object sender, EventArgs e)
       {
           webBrowser1.Navigate(textBox1.Text);
       }

       private void webBrowser1_DocumentCompleted(object sender,
WebBrowserDocumentCompletedEventArgs e)
       {

Now it is opening the Ip inside it...But how can I send the Ip to the
default Internet Explorer window????

Thanks
Nicholas Paldino [.NET/C# MVP] - 27 Aug 2007 15:29 GMT
Wolfgang,

   If you want to open the default browser, then all you have to do is
create a url and then pass that to the Process class.  Basically, you would
create the string "http://10.x.x.x" and then pass that to the Process class.
The OS will then launch the default browser for the system with that URL.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> Hi,
> I am new in C# and MS programming.
[quoted text clipped - 9 lines]
>
> Thanks a lot!
WolfgangD - 27 Aug 2007 16:23 GMT
On 27 Aug., 16:29, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.com> wrote:
> Wolfgang,
>
[quoted text clipped - 20 lines]
>
> > Thanks a lot!

Hi,
thanks

...

I found this:
System.Diagnostics.Process process = new System.Diagnostics.Process();

process.StartInfo.FileName = URL;

process.Start();

That works great!!!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.