Click here to Skip to main content
15,898,987 members

Comments by Manish Ranjan Kumar (Top 1 by date)

Manish Ranjan Kumar 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.