Category: Windows Forms

How to Debug a Windows Service written in C# ?

Debugging a Windows Service is one of the difficult thing to do when working on developing a Windows Service project in Visual Studio . One of the method to do the debugging is to attach the debugger to the thread and starting the Windows Service. . This might be little overhead sometimes. How to Debug a Windows Service written in C# ? Incase you need…

How to Make Single Instance Application for VB.NET Application in Visual Studio 2012?

When developing a Windows Application in VB.NET, there are times when you want to make your application as single instance application. You can do that easily with just few steps in your VB.NET project. How to Make Single Instance Application for VB.NET Application in Visual Studio 2012? Launch Visual Studio 2012 and Open your VB.NET Windows Application. Right Click on the project in the Visual…

How to Enable or Disable Visual Styles in your VB.NET Winforms Application?

You can enable or Disable the Visual Styles in your VB.NET Winforms Application by following the below steps. How to Enable or Disable Visual Styles in your VB.NET Winforms Application? 1. Launch Visual Studio 2013 and Open your VB.NET Project. 2. Right Click on the project and open the Project Properties. 3. In the Project Properties Dialog, Select the “Application” menu in the left sidebar…

How to force the .NET Winforms Application to run as Administrator in Windows 8?

The Winforms or the Console Application developed in .NET can be made to run in the Administrator mode once the application is installed on client machine. You can do this by setting the requestedExecutionLevel to the requireAdministrator mode in the application manifest file. How to force the .NET Winforms Application to run as Administrator in Windows 8 ? To force the .NET Winforms app to…

Application.Run in Windows Forms Application

When a new Windows Forms Project is created , you would see the sourcecode similar to the below sample in the Program.cs using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace WindowsFormsApplication1 { static class Program { [STAThread] static void Main() { Application.Run(new Form1()); } } } What does the Application.Run do ? The Application.Run will run the standard application message loop in the current…

Liked this content?. Please spread the word :)