TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
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);
}
Reply
Answers (
3
)
C# running a BAT file on an embeded VBS script
Compare a string with one another from XML used by C# DataGridView