Click here to Skip to main content

Comments by Manish Ranjan Kumar (Top 1 by date)

Manish Ranjan Kumar at 12-May-11 4:43am View
   
static class Program
{
///
/// The main entry point for the application.
///

[STAThread]
static void Main()
{
var str = "c:\\windows\\explorer.exe";
System.Diagnostics.FileVersionInfo fileVersionInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(str);
//Check Version
if(fileVersionInfo.FileMajorPart != 5 )
{
return;
}
 

Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
 
Use this peace of code.

Advertise | Privacy | Mobile
Web01 | 2.8.150224.1 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid