Open .html on load of form and to make default web browser!
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Open .html on load of form and to make default web browser!

  1. #1
    Join Date
    Dec 2010
    Posts
    7

    Exclamation Open .html on load of form and to make default web browser!

    hi, i run C# 2010, .NET 4
    I would like some help to be able to make my form- a web browser.
    My aim is that when a .html file is clicked outside my app, it opens the form and the web browser control loads the .html file but not the home page.

    Then, i would like to be able to make it my default browser once done.

    So how can i do this.

    Please reply with code or comments

    what i want is to be able to open something in my Web Browser in explorer.exe
    I know how to do this, but , it doesn't load the file. I know how to make it default browser, but there is no point of doing it if it can't open .htmls from explorer.exe

    See, what i want is some code to allow the web browser control to load .htmls like all other browsers when they are clicked on in Explorer.exe


    Watch this video - only 20 secs!!
    Link: http://fs11n5.sendspace.com/dl/b4dcb...al%20Video.wmv

    I really need help quickly.

  2. #2
    Join Date
    Nov 2004
    Location
    India
    Posts
    63

    Re: Open .html on load of form and to make default web browser!

    You probably need to set html file extensions to use your application.

    Take a look at this and this
    Sandeep
    http://www.sandeeprawat.com
    Code:
    Forget the language. Remember the logic.

  3. #3
    Join Date
    Dec 2010
    Posts
    7

    Exclamation Re: Open .html on load of form and to make default web browser!

    I know how to make a file association, but i want the actual web browser to load a .html that is clicked in explorer.exe Have you seen the video?

  4. #4
    Join Date
    Nov 2010
    Posts
    34

    Re: Open .html on load of form and to make default web browser!

    after you make the file association to your app.exe you need to change it to accept args[], then on load, make sure it's a valid url and wb1.nav()

Tags for this Thread

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center