Solved

C# app - in browser or stand-alone

Posted on 2010-09-22
5
663 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now