Page Rank

Subscribe

Categories

Recent posts

Alexa Rank

Create shortcut for application exe to the desktop in C#


 

  • This topic helps to create shortcut for application exe to the desktop in C#.
  • You can create shortcut for application exe or any other application exe to the desktop in C#.
  • This example shows how to create our visual studio application exe to the desktop in C#.
  • For this topic, you have to add a Button Control to the form and also import a namespace called IWshRuntimeLibrary in C#.

C#Create shortcut for application exe to the desktop in C#

  • C# is an Object Oriented Programming language from Microsoft that mainly combines the computing power of C++ with the programming ease of Visual Basic.
  • C# is mainly based on C++.
  • The most recent version is C#4.0.
  • C# language is simple, modern, general-purpose, object-oriented language.
  • Timer is a control available in Visual C#.NET

To import IWshRuntimeLibrary class do the following steps

1)     Right click on the solution explorer and select add reference

2)     Select COM tab and select Windows Script Host object Model and click OK

IWshRuntimeLibrary - Create shortcut for application exe to the desktop in C#

  • IWshRuntimeLibrary.dll is an automatically generated wrapper DLL for wshom.ocx.
  • You cannot redistribute wshom.ocx but can freely redistribute wrapper DLLs as required by your app to run.

Create shortcut for application exe to the desktop in C#Complete Code

 Create shortcut for application exe to the desktop in C#


VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">