Version Property

Syntax

C#

public Version Version;

VB.NET

Public Version Version

Description

The Version property returns the version of the installed Flash Player.
Use it to check whether the required version of Flash is available before running your application.


Example (C#)

[STAThread]
static void Main()
{
    if (!f_in_box__lib.Global.IsFlashInstalled)
    {
        System.Windows.Forms.MessageBox.Show(
            "The application needs Flash 8 or higher\nFlash is not installed"
        );
        return;
    }
 
    if (f_in_box__lib.Global.InstalledFlashVersion.MajorPart < 8)
    {
        System.Windows.Forms.MessageBox.Show(
            "The application needs Flash 8 or higher\nCurrent flash version is: " +
            f_in_box__lib.Global.InstalledFlashVersion.ToString()
        );
        return;
    }
 
    Application.Run(new MainForm());
}

This property is useful for validating system compatibility and ensuring the correct version of Flash is present.