I would like to pass int _iD to my button click event. For now, I've passed my value to textbox and use it in button click. Is there anyway to bypass the textbox?
public MifarePasswordForm(int _iD)
{
InitializeComponent();
int iD = _iD;
textBox1.Text += iD;
}
Button click event
private void btnOK_Click(object sender, EventArgs e)
{
byte Oid = Convert.ToByte(textBox1.Text);
}