C# newbee
-
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.
-
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.
why not create asp.net application instead of windows forms app MCAD
-
why not create asp.net application instead of windows forms app MCAD
-
It is not an webapp. It is normal windows application. The project should be executable ie .exe
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
-
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.
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
-
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
-
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.
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.
-
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.
-
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.
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]
-
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.
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.