private void btnDoThisWork_Click(object sender, EventArgs e) { VerifyForm EH = new VerifyForm(this); EH.StartPosition = FormStartPosition.CenterParent; EH.ShowDialog(); if (rttam) { } }
private void btnDoThisWork_Click(object sender, EventArgs e) { VerifyForm EH = new VerifyForm(); //This creates a NEW instance of the class, not what you want (I think) parent.StartPosition = FormStartPosition.CenterParent; parent.ShowDialog(); if (rttam) { } }
public IntelOrNo(VerifyForm _parent) { parent = _parent; //Sets the private parent variable to the initial VerifyForm class, from here you can access the initial VerifyForm class through parent.whatever InitializeComponent(); }