Similar to the implementation in VB and other languages, Windows API is called.
Using System;
Using System. Windows. forms;
Using System. runtime. interopservices;
Namespace Jacky. WIN32API {
/**/ /// <Summary>
///Show windows about box
/// </Summary>
Public Class Aboutbox {
[Dllimport ( " Shell32.dll " )]
Private Static Extern Long Shellabout ( Int Hwnd, String Szapp, String Szotherstuff, Int Hicon );
Private String _ Title = Application. productname;
Private Int _ Formhandle = 0 ;
Private Int _ Iconhandle = 0 ;
Private String _ Version = Application. productversion;
/**/ /// <Summary>
///
/// </Summary>
/// <Param name = "formhandle"> </param>
/// <Param name = "iconhandle"> </param>
/// <Param name = "title"> </param>
/// <Param name = "version"> </param>
/// <Example> New aboutbox (this. Handle. toint32 (), this. Icon. Handle. toint32 (), "software name", "version 1.0"). Show (); </Example>
Public Aboutbox ( Int Formhandle, Int Iconhandle, String Title, String Version) {
This . _ Formhandle = Formhandle;
This . _ Iconhandle = Iconhandle;
This . _ Title = Title;
This . _ Version = Version;
}
/**/ /// <Summary>
///
/// </Summary>
/// <Param name = "formhandle"> </param>
/// <Param name = "iconhandle"> </param>
/// <Example> New aboutbox (this. Handle. toint32 (), this. Icon. Handle. toint32 (), "software name", "version 1.0"). Show (); </Example>
Public Aboutbox ( Int Formhandle, Int Iconhandle) {
This. _ Formhandle=Formhandle;
This. _ Iconhandle=Iconhandle;
}
Public Long Show () {
ReturnShellabout (This. _ Formhandle,This. _ Title,This. _ Version,This. _ Iconhandle );
}
}
}
Call method:
New Aboutbox ( This . Handle. toint32 (), This . Icon. Handle. toint32 (), " Software name " , " Python SDK Version 1.0 " ). Show ();