Topics Search

How to get the CommandLine of the Current Application in C# ?

How to get the CommandLine of the Current Application in C# ?
Views: 1
You might need to get the information that contains the commandline which is used to execute the current application in C#. How to get the CommandLine of the Current Application in C# ? You can use the CommandLine property of the System.Environment class that provides the necessary information including the application name.
Sponsored Links:

Similar posts...

 

How to get the Machine Name from a .NET Application using C# ?

How to get the Machine Name from a .NET Application using C# ? Icon
You can use the MachineName property defined in the System.Environment class in order to get the Machine Name from your .NET Application. How to get the Machine Name from a .NET Application using C# ? Here’s a code sample demonstrating how to do it.
 

Simple Dictionary Application Using MySQL And Windows Form Application In C#

Simple Dictionary Application Using MySQL And Windows Form Application In C# Icon
This article shows how to make a simple Dictionary Application using MySQL and Windows Form Application in C#... Open Microsoft Visual Studio by clicking on the start button, All programs, then Microsoft Visual Studio. Select File, new, project, then under installed templates select Visual C#....
 

Simple C# Watchdog

Simple C# Watchdog Icon
This tip will describe the use of a simple watchdog process to monitor and revive another application. The watchdog process monitors and revives another application, should there be a failure. This can be used as a simple recovery technique to ensure application availability in critical environments. The WatchdogLib contains all the necessary utilities to implement and integrate a simple watchdog to your .NET applications.
 

IIS Application Pool Operations via C#

IIS Application Pool Operations via C# Icon
There are situations where we would need to restart IIS application pools remotely via C#. This tip aims to achieve that with any IIS installed destination server. There are many ways to check status, stop, start the application pools on remote servers. Even though System.DirectoryService.DirectoryEntry method provides simple 3 lines of code to do that, still we are in need of a cleaner code which can perform the action under restricted environments as well.
 

Read Excel File In Windows Application Using C#

Read Excel File In Windows Application Using C# Icon
In this article we will learn how to read an Excel file in Windows Application using C#. This is my first article. In this article we will learn how to read an excel file. We will make a windows application using C#. Open Visual Studio. Select New Project, then Windows Form Application...
 

Simple Easy C# SplashScreen with Minimal Coding

Simple Easy C# SplashScreen with Minimal Coding Icon
Many applications show a splashscreen to let the user know that the program is loading and to add some flair to their program. The splashscreen typically shows the application's name, version number as well as copyright information. This approach allows the developer to use any Windows form as the splashscreen. It automatically hides the screen when the first Windows Form of the application finishes loading and is shown. Also it displays the splashscreen on exit of the application.
 

MDI Case Study Purchasing - Part X - Smart Saving

MDI Case Study Purchasing - Part X - Smart Saving Icon
In Part X we will deal with Smart Saving. If the user tries to close a document with unsaved changes, we will alert the user, giving them an opportunity to save. We will also deal with this for when the main application is closed. Additionally, we will learn how limit our application instance count to 1, so that if the user runs our application while an instance is already open, we will cancel the new instance, and switch the user to the already running instance.
 

GLFW: A (Simple) OpenGL Framework Library

GLFW: A (Simple) OpenGL Framework Library Icon
I will try to keep things as much simple as possible but I must suppose you have at least a basic knowledge on how to write a Win32 application and a minimal knowledge of OpenGL programming in Win32 environment. In my opinion, one of the most complicated (and/or boring) things to do when writing a OpenGL application is to prepare the needed environment. Even if the setup process of a plain Win32 application which draws a 3D scene on a window using OpenGL is quite easy when compared to the same process done using Direct3D, it involves a lot steps that can create some trouble to beginners.
 

Beginning C#: More about Variables in C#

Beginning C#: More about Variables in C# Icon
Everything you do, process, or handle in any way, in any application you write, needs to be stored in variables. Variables are named slots that point to a value of some kind stored in your application's memory and can hold a staggering number of different things.
 

Create a multilevel menu in linq Part-1

Create a multilevel menu in linq Part-1 Icon
In this post we will see how to generate a multilevel menu in Linq or we can as flatten a hierarchical collection of objects in Linq. For that purpose we are going to make new C# console application .we will design this application such that root node will follow the below shown pattern.