Closed Thread
Results 1 to 4 of 4

Thread: C# navigating url to any IE,Safari, Mozilla etc.

  1. #1
    Siten0308's Avatar
    Siten0308 is offline Programming Professional
    Join Date
    Jun 2008
    Location
    California, USA
    Posts
    302
    Rep Power
    16

    Question C# navigating url to any IE,Safari, Mozilla etc.

    Hello,

    I am creating an app, and i want it to be able to double click in a listbox that has websites, and when double clicked, it opens a website whether the user has IE, mozilla, Safari etc... but i only know how to use ie, but i tried using webbrowser class, and use webbrowser.navigate(url string) but when i double click it doesnt work, wondering if i need to add anything at all such as start a process etc? again i want my app to work for any thing such as IE, mozilla, and safari, dont want to be limited to just ie.

    thanks
    Its only funny till someone gets hurt.... THEN ITS HILARIOUS

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Join Date
    Nov 2009
    Location
    I seem to be lost...
    Posts
    1,566
    Blog Entries
    1
    Rep Power
    22

    Re: C# navigating url to any IE,Safari, Mozilla etc.

    Well this code will open up a site with the default web browser for the computer.
    Code:
    string gotourl = "http://YOUR_URL.com/";
                System.Diagnostics.Process.Start(gotourl);
    is that what your looking for? If so just add that to the click event or where ever you need it.
    Knowledge: Intermediate C#, Beginner AS3, HTML, CSS, Binary, Hex, Octal.
    Science is only an educated theory, which we cannot disprove.

  4. #3
    Siten0308's Avatar
    Siten0308 is offline Programming Professional
    Join Date
    Jun 2008
    Location
    California, USA
    Posts
    302
    Rep Power
    16

    Cool Re: C# navigating url to any IE,Safari, Mozilla etc.

    ...cant believe that was it..... thanks gamemaker yup that was it, but then again i didnt realize you can use process to do that, also thanks for the unity idea, love it
    Its only funny till someone gets hurt.... THEN ITS HILARIOUS

  5. #4
    Join Date
    Nov 2009
    Location
    I seem to be lost...
    Posts
    1,566
    Blog Entries
    1
    Rep Power
    22

    Re: C# navigating url to any IE,Safari, Mozilla etc.

    also thanks for the unity idea, love it
    Yap no prob been playen with it myself.
    Knowledge: Intermediate C#, Beginner AS3, HTML, CSS, Binary, Hex, Octal.
    Science is only an educated theory, which we cannot disprove.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. problem using javascript in mozilla addon
    By exilonX in forum JavaScript and CSS
    Replies: 0
    Last Post: 08-24-2011, 06:35 AM
  2. Firefox Mozilla Relative Path
    By batowiise in forum PHP Development
    Replies: 5
    Last Post: 01-12-2011, 05:57 PM
  3. Creating mozilla addon site
    By gokuajmes in forum Website Design
    Replies: 1
    Last Post: 09-02-2010, 11:51 AM
  4. Getting info from web, navigating etc.
    By jaydee in forum Visual Basic Programming
    Replies: 0
    Last Post: 09-10-2009, 04:20 PM
  5. Navigating mazes
    By chili5 in forum Programming Theory
    Replies: 4
    Last Post: 12-25-2008, 11:11 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts