Click here to Skip to main content
13,190,994 members (57,013 online)

Comments by Manish Ranjan Kumar (Top 1 by date)

Manish Ranjan Kumar 12-May-11 4:43am View
   
static class Program
{
/// <summary>
/// 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 |
Web02 | 2.8.171016.2 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid