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. C# newbee

C# newbee

Scheduled Pinned Locked Moved C#
csharpdesign
10 Posts 6 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi, I am new C#. I want to develop a C# windows app. But instead of using forms I want the output to be rendered in IE. ie when the user clicks the .exe file to execute the app, it should open in IE. The reason I want to do this is, I want to create the UI similar to a webpage(but not) to give the user a feel of ease to work with. Thanks.

    M D L H H 5 Replies Last reply
    0
    • L Lost User

      Hi, I am new C#. I want to develop a C# windows app. But instead of using forms I want the output to be rendered in IE. ie when the user clicks the .exe file to execute the app, it should open in IE. The reason I want to do this is, I want to create the UI similar to a webpage(but not) to give the user a feel of ease to work with. Thanks.

      M Offline
      M Offline
      Mohamad Al Husseiny
      wrote on last edited by
      #2

      why not create asp.net application instead of windows forms app MCAD

      L 1 Reply Last reply
      0
      • M Mohamad Al Husseiny

        why not create asp.net application instead of windows forms app MCAD

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        It is not an webapp. It is normal windows application. The project should be executable ie .exe

        M 1 Reply Last reply
        0
        • L Lost User

          It is not an webapp. It is normal windows application. The project should be executable ie .exe

          M Offline
          M Offline
          Mohamad Al Husseiny
          wrote on last edited by
          #4

          So do you want IE to host your application or you want yor application to run IE? I think you mean the first so suggest to use web app can you give more details? MCAD

          L 1 Reply Last reply
          0
          • L Lost User

            Hi, I am new C#. I want to develop a C# windows app. But instead of using forms I want the output to be rendered in IE. ie when the user clicks the .exe file to execute the app, it should open in IE. The reason I want to do this is, I want to create the UI similar to a webpage(but not) to give the user a feel of ease to work with. Thanks.

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            Ann66 wrote: But instead of using forms I want the output to be rendered in IE You really don't want to do this. This will VASTLY (can't stress this enough) complicate your interface code because .NET app's don't run natively inside a COM or OLE container. What you're talking about doing is write your own ActiveX .EXE, which Visual Studio and the .NET Framework cannot target building. This was done pretty easily in VB6 though. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            1 Reply Last reply
            0
            • M Mohamad Al Husseiny

              So do you want IE to host your application or you want yor application to run IE? I think you mean the first so suggest to use web app can you give more details? MCAD

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              My Project is absolutely a windows app. But instead of using dialogs or windows for UI , I want to run the app with IE and give the user a webapp feel.

              D 1 Reply Last reply
              0
              • L Lost User

                My Project is absolutely a windows app. But instead of using dialogs or windows for UI , I want to run the app with IE and give the user a webapp feel.

                D Offline
                D Offline
                Dan Neely
                wrote on last edited by
                #7

                There's no good way to do that. You can't put webcontrols directly on a winform app. You *could* write you main form with an embedded IE controller, implement your app as a webpage, and have the installer create a local webserver that your app starts to do display the pages. In addition to being extremely nonelegant, most users don't have a licence for IIS to run an asp.net webpage. You might be able to do it by building the webpart with mono and installing apache as your local webserver, but since I've never used mono I'm not sure what if any limitations you'd be facing. Your other option would be to write your own set of custom controls that look like web components. This would be a massive udnertaking, and as a selfdeclared newbie, you're nowhere near capable of doing so.

                1 Reply Last reply
                0
                • L Lost User

                  Hi, I am new C#. I want to develop a C# windows app. But instead of using forms I want the output to be rendered in IE. ie when the user clicks the .exe file to execute the app, it should open in IE. The reason I want to do this is, I want to create the UI similar to a webpage(but not) to give the user a feel of ease to work with. Thanks.

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  Ya I guessed so...that it is not easily doable. Anyway thanks guys for all ur help.

                  1 Reply Last reply
                  0
                  • L Lost User

                    Hi, I am new C#. I want to develop a C# windows app. But instead of using forms I want the output to be rendered in IE. ie when the user clicks the .exe file to execute the app, it should open in IE. The reason I want to do this is, I want to create the UI similar to a webpage(but not) to give the user a feel of ease to work with. Thanks.

                    H Offline
                    H Offline
                    Heath Stewart
                    wrote on last edited by
                    #9

                    You can actually both host a managed application (DLL) and launch a managed application (EXE) within or from Internet Explorer, but there's a lot of rules and by default your code isn't permitted at all to run in .NET 1.0, and is only given a few permissions by default in .NET 1.1 and newer. What are permissions? See Understanding .NET Code Access Security[^] for details. I wrote an article long ago that's still relevant (although .NET 1.1's "Internet_Policy" grants a few permissions now) at http://www.devhood.com/Tutorials/tutorial_details.aspx?tutorial_id=388[^]. An EXE isn't much different except in how it's compiled. Chris Sells wrote a good article specific to launching a managed EXE from IE at http://msdn.microsoft.com/smartclient/community/heroes/wahoo.aspx[^]. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Customer Product-lifecycle Experience Microsoft [My Articles] [My Blog]

                    1 Reply Last reply
                    0
                    • L Lost User

                      Hi, I am new C#. I want to develop a C# windows app. But instead of using forms I want the output to be rendered in IE. ie when the user clicks the .exe file to execute the app, it should open in IE. The reason I want to do this is, I want to create the UI similar to a webpage(but not) to give the user a feel of ease to work with. Thanks.

                      H Offline
                      H Offline
                      Heinz_
                      wrote on last edited by
                      #10

                      Running an app in the web browser could be a pain in the ass. But if you want to give a web browser looking, i have to tell you that i've seen many applications like this, for example SharpDevelop (the main window, it has links like web browser, has form controls and is a winform app). I've seen apps that can be installed in your pc and be run from a webpage instead double clicking the exe. That's another posibility but i don't know if you have to run a web server for doing this cause there's client server interoperability.

                      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