Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. HTML Page from Windows

HTML Page from Windows

Scheduled Pinned Locked Moved C#
htmlwinformsjson
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kalyanPaladugu
    wrote on last edited by
    #1

    I want to open a HTML Page from Windows forms. Iam using System.Diagnostic.process Api to do that. First is there any other way to do it. Second i want to control the size of the internetexplorer window when i open it. Is there a way to do that Thanks Kal

    J 1 Reply Last reply
    0
    • K kalyanPaladugu

      I want to open a HTML Page from Windows forms. Iam using System.Diagnostic.process Api to do that. First is there any other way to do it. Second i want to control the size of the internetexplorer window when i open it. Is there a way to do that Thanks Kal

      J Offline
      J Offline
      Jun Du
      wrote on last edited by
      #2

      kalyanPaladugu wrote:

      I want to open a HTML Page from Windows forms.

      Within your window form, or to a web browser? If you want to open it to a web browser, you choose among Process.Start(), ShellExec(), or ShellFileOperation(). If you want to open it on your window form, add a web browser control to the form and call its Navigate().

      Best, Jun

      K 2 Replies Last reply
      0
      • J Jun Du

        kalyanPaladugu wrote:

        I want to open a HTML Page from Windows forms.

        Within your window form, or to a web browser? If you want to open it to a web browser, you choose among Process.Start(), ShellExec(), or ShellFileOperation(). If you want to open it on your window form, add a web browser control to the form and call its Navigate().

        Best, Jun

        K Offline
        K Offline
        kalyanPaladugu
        wrote on last edited by
        #3

        1.Iam thinking of web browser. I want to resize the web browser it opens in 2. Since you asked the question. Can i open it in windowsform it self and use the print functionality of the opened HTML page inside windows forms. If possible how to open it inside windows forms

        J 1 Reply Last reply
        0
        • K kalyanPaladugu

          1.Iam thinking of web browser. I want to resize the web browser it opens in 2. Since you asked the question. Can i open it in windowsform it self and use the print functionality of the opened HTML page inside windows forms. If possible how to open it inside windows forms

          J Offline
          J Offline
          Jun Du
          wrote on last edited by
          #4

          See my modified previous post.

          Best, Jun

          1 Reply Last reply
          0
          • J Jun Du

            kalyanPaladugu wrote:

            I want to open a HTML Page from Windows forms.

            Within your window form, or to a web browser? If you want to open it to a web browser, you choose among Process.Start(), ShellExec(), or ShellFileOperation(). If you want to open it on your window form, add a web browser control to the form and call its Navigate().

            Best, Jun

            K Offline
            K Offline
            kalyanPaladugu
            wrote on last edited by
            #5

            With the Process.Start() how do i control the size of the web form which is opened Thanks Kal

            J 1 Reply Last reply
            0
            • K kalyanPaladugu

              With the Process.Start() how do i control the size of the web form which is opened Thanks Kal

              J Offline
              J Offline
              Jun Du
              wrote on last edited by
              #6

              ProcessStartInfo supports limited options on the opened window: hiden, minimized, maximized, normal. Other window styles have to go through the client program, "iexplore", for example.

              Best, Jun

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups