Joe

Joe

  • NA
  • 3
  • 2k

Save changes to existing form

Sep 3 2011 9:29 AM
i can save my form fine with the saveas dialog  i need help with saving changes to an existing form without the dialog.  here is my savedialog code


private void mnuFileSave_Click(object sender, EventArgs e)
if
(dlgSave.ShowDialog() == DialogResult.OK)FileStream fleMhrWorkOrder = new FileStream(this.dlgSave.FileName,FileMode.Create, FileAccess.Write, FileShare.Write);BinaryWriter bnrMhrWorkOrder = new BinaryWriter(fleMhrWorkOrder);
{
bnrMhrWorkOrder.Write(txtEquipmentLoc.Text);
bnrMhrWorkOrder.Write(txtSerialNum.Text);
bnrMhrWorkOrder.Close();
fleMhrWorkOrder.Close();
txtAction13.Focus();
mnuFileNew_Click(sender, e);
}

Answers (3)