Solved

C# app - in browser or stand-alone

Posted on 2010-09-22
5
690 Views
Last Modified: 2013-12-16
Hi Experts,
Is there a way, using C#, to create an application that can run stand-alone or on the web (depending on how its started)?  The stand-alone app would have more rights (be able to access the hard drive, etc), but the web version would not...

Apologies if you consider this the same as a previous question of mine, but I'm really targeting c# here...

Thanks!
Mike
0
Comment
Question by:thready
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 10

Accepted Solution

by:
joriszwaenepoel earned 250 total points
ID: 33737471
In WPF, you can create a Windows application (stand alone), and also a WPF Browser (web) application.
You need to create 2 projects, but you could create a WPF usercontrol, and use that in both projects to avoid the need to duplicate much of your UI.
0
 
LVL 1

Author Comment

by:thready
ID: 33738032
Sounds good - is the WPF browser something like an applet?  Are there any gotchas I need to lookout for (such as the need for users of this to install some sort of ActiveX control to see the webpage properly?)

Thanks!
Mike
0
 
LVL 10

Assisted Solution

by:joriszwaenepoel
joriszwaenepoel earned 250 total points
ID: 33738361
The users will need to have the .NET framework installed to be able to use a WPF browser application.

I have created WPF Windows applications, but not Browsers applications.  I just know it exists, and it has some limitations (no full trust, etc...) compared to Windows apps..
0
 
LVL 6

Assisted Solution

by:rajeshjamnadas
rajeshjamnadas earned 125 total points
ID: 33743228
go through this site and samples all your doubt will get clear i.e. how win app and browser security can be implemented and using the same code in both the app.

http://wpfcontrib.codeplex.com/
0
 
LVL 16

Assisted Solution

by:Vikram Singh Saini
Vikram Singh Saini earned 125 total points
ID: 33760739
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question