private void WebPExample_Load(object sender, EventArgs e) { try { //Inform of execution mode if (IntPtr.Size == 8) { this.Text = Application.ProductName + " x64 " + Application.ProductVersion; } else { this.Text = Application.ProductName + " x86 " + Application.ProductVersion; } //Inform of libWebP version using (WebP webp = new WebP()) this.Text = this.Text + " (libwebp v" + webp.GetVersion() + ")"; } catch (Exception ex) { MessageBox.Show(ex.Message + "\r\nIn WebPExample.WebPExample_Load", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }