When working in Win forms using C# and especially when you use the combo box , you would have noticed that by default the user can edit the values inside during the runtime. How to disable editing of items in a combo box in c# (win forms) ? Assuming that the combobox name is combobox1 […]
When working on a Winforms or Console application using C# , sometimes you might need to get the computer name where the application is running. How to get the Computer Name in C# ? To retrieve the computer name , one can use the System.Environment.MachineName property as shown below.
There are times when you might need to provide the user with the ability to pick the colours within your Windows application . You can use the ColorDialog class which is a built-in color picker which lets the users to pick the color within the app. How to allow the user to pick Color from […]
There are times when you want to allow the user to browse for files and select one in your Windows Application . The Winforms provides the FolderBrowserDialog class which can be used to select a file interactively. How to allow the user to browse for directories in Winforms App using C# ? Below is a […]
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 […]
Below is a sample code snippet demonstrating in simple steps on how to retrieve the IP address in the Winforms or Console APPLICATION using c#. How to Get the IP address in Winforms/Console Application using C#?
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 […]