.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

WPF Desktop Application FullScreen blocking everything ... how?

Posted By:      Posted Date: September 30, 2010    Points: 0   Category :WPF


I'm working on an access control system using WPF desktop app ... I need the app to get full screen so nobody cant access to any application on the machine (to avoid people closing the app, shutting down the pc, changing system clock, etc...). Far away I manage to do this by setting the form to maximized and the topmost property set to true ... this appears to work ok, but I'm wondering if theres another (and better) way to do this??

Basically I need to block everything else in the computer, no Alt+Tab, no Ctrl+Alt+Supr, no Alt+F4 (I was thinking to get the keyPreview event of the form, assuming the form is always topmost and the active form, and block any call if the first key is Alt of Ctrl... but again, is there a better way?).

Thanks for your time!

View Complete Post

More Related Resource Links

Data Access: Building a Desktop To-Do Application with NHibernate


Building an NHibernate-based desktop application isn't any harder than building a web application, and in many cases NHibernate simplifies elements of session handling and concurrency.

Oren Eini

MSDN Magazine December 2009

Posting data to a website (HTTPS) from a Desktop Application in Visual Basic (.Net 3.5 or .Net 4.0)

Hello everyone, I'm trying to create a desktop application that will update my IPv4 address to an IPv6 Tunnel broker.  I have the app running up to the point where it sends the data to the website, and then I get exceptions.  I'd like someone to take a look at my code, and tell me what I've got wrong (if anything).  Here's the code that I have (the only portion that is filled in is for Hurricane Electric) Dim strUsername As String = txtUsername.Text.ToString 'User Id supplied by the User. Dim strPassword As String = txtPassword.Text.ToString 'Password supplied by the User. Dim strPasswordHash As String = "" ' this will be created from the hashing of the password supplied by the user. Dim strTunnelID As String = txtGlobalTunnelId.Text.ToString 'Global Tunnel ID (He.net and ) Dim strUrl As String = "" ' Place holder for the URL Which will be provided after the password is hashed and specified by the tunnel broker. Dim strTunnelBroker As String = cbxTunnelBroker.SelectedItem 'Sets the Tunnel Broker to the user specified one. Dim wc As New WebClient() 'Allows for posting data to the server 'holds the server response. Dim strData As String = "" 'Provides the data for the form. Dim result As String = "" Select Case strTunnelBroker Case

code to run visual basic application in between desktop icon and wallpaper

Plex can anyone of you tell me the visual basic net code to make the application run between desktop icon and background wallpaper . it mean if that application is running in background the icon in the desktop should be selectable...  pleax send you code to me ....    

add themes to desktop application in C#.NET

hi, how can i add a theme to the interface in the project that i have made in C#.NET???

Open .NET application/website in fullscreen(F11) mode.


When I run my application I want my web browser to open automatically in fullscreen(F11) mode.

Any suggestions?

Wpf Desktop Sharing Application for XP


Hi all,

I am about to create a WPF Desktop Sharing Application for Xp.  However, I would need to connect using internet and not in LAN.  Please help me on how to start and where to start. I have already have some links which connects through "RDPECOMM.dll" Via "RIAInivation"  on Vista and Windows 7. Any Idea on WPF with XP would be great.


how to create an image from webservice on desktop application


Hello Partners,

On desktop application I am uploading photos and storing physically on the webserver with the help of webservice and in DB I am storing physical path of that photo.

On the other hand, I want to download the images for later use at that time I am creating bytestream from the physical path and storing it in the dataset column whose datatype is VARBINARY(MAX)

I can return byte array which creates the images on the client side very easily.

The main problem I am facing here is, I am not able to convert the byte array into dataset's VARBINARY format.

I really will be thankful for ur help...

How to connect to remote desktop from console application?



I'm trying to connect to remote desktop from console application without opening window using this code:

MsRdpClient7Class rdp = new MsRdpClient7Class();

rdp.Server = "";
rdp.UserName = @"username";
rdp.AdvancedSettings2.ClearTextPassword = "password";


But, there's an error message:

Error 1 Interop type 'MSTSCLib.MsRdpClient7Class' cannot be embedded. Use the applicable interface instead. C:\gtk\GetRemoteDesktop\ConsoleRemoteDesktop\Program.cs 16 7 ConsoleRemoteDesktop

How to accomplish it?

Thank you in advance.



how to develop forms (desktop database) application in shortest time ?



I am new to WinForms and want to develop a small database application. Initially I am not much keep on performance. Please advice me some way (may be automaticed) to develop in very short time.

I am doing the following things.

1. Login

2. Adding/ editing/ deleting records in db.

3. Adding/ editing / deleting sales from grid.

4. some reports.

Thanks for guiding & helping me.


Focus on childwindow brings the taskbar on top of my FullScreen application(on Win 7)


Looking for a way to have my C# Application running on a Terminal Server in a Remote Desktop Session


I have an application written in C# that has a feature that when ran locally starts a second application with command line arguments.  When my application is ran on a Terminal Server in a remote desktop session, it needs to start the second application on the user's local PC.  I started looking into opening up Virtual Chanel on the server and creating the Virtual Chanel DLL on the client to read any incoming data and start the application but it seems very complicated to do in c# and overkill for something so simple.  I was wondering if anyone had an easier way for me to do this.

Thanks for your help,


FotoVision Desktop Application

Allows you to easily Share Photos on the Web and Windows Forms, ASP.NET, Web services, and the .NET Compact Framework. It consists of a desktop, web, and Pocket PC sample applications.

Microsoft's Collaborative Application Markup Language (CAML) Loop

discovered an interesting error recently while working with Microsoft's Collaborative Application Markup Language (CAML) that, surprisingly, had received no ink. Partly what surprises me about this is that the error may require you to rewrite large sections of your code if you haven't previously considered this SharePoint limitation. I'll start with some context, but first of all the error is:

Integrating a Legacy Web Application in SharePoint

This month we will continue with the theme of deploying Microsoft's SharePoint as a company intranet by describing a method for integrating a legacy Web application inside a SharePoint site.

In many companies the intranet site is not just a home page with announcements. It houses Web applications used by many different departments. In last month's article, I built a page to search the employee table in Northwind (the sample database included in Microsoft's SQL Server). This month, I will move the Web pages used to add/remove records from the table into the SharePoint intranet.

IP Address Blocking or Restriction in SQL Server

"is it possible to block connections to SQL Server based on IP address". As far as now there is no official way in SQL Server to block the connections in SQL Server based on IP address. However this can be done from the OS end, we have the following three options available, refer HERE for more.

.RRAS IP Filter

MVC architecture in ASP.Net using C# and Microsoft Data Access Application block

The Model-View-Controller (MVC) pattern separates the modeling of the domain, the presentation, and the actions based on user input into three separate classes [Burbeck92]:

Model. The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller).

View. The view manages the display of information.

Controller. The controller interprets the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.

High-Performance .NET Application Development & Architecture

It has always been a goal of project architects to plan an effective strategy from the ground up in regards to an new application. All relevant factors are taken into consideration with respect to the application, from its design and layout to a functional website infrastructure. Pre-.NET strategies and design guidelines still effective now were developed with Microsoft's DNA (Distributed interNet Application) platform. This model successfully served the purpose of architecting N(any number of)-Tier (levels) applications. In its basic sense, as in most robust, distributed applications, you'll architect 3 main layers or Tiers: presentation, business rules and data access.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend