private void btnDecode_Click(object sender, EventArgs e) { try { txtSourceCode.Text = Base64Helper.DecodingForString(txtBase64Code.Text, System.Text.Encoding.GetEncoding(DataConvert.GetInt32(txtCode.Text))); } catch (Exception ex) { MessageBox.Show(ex.Message); } }