Answered You can hire a professional tutor to get the answer.
C++ Create C# Winforms program that has TextBox input fields for name and address. You might want to set the Multiline property to true for the...
C++
Create C# Winforms program that has TextBox input fields for name and address. You might want to set the Multiline property to true for the address.
Add a "Save" button that when clicked opens a "Save Dialog" that allows a user to specify a filename. The code will look something like this:
DialogResult result = saveFileDialog1.ShowDialog();
if (result == DialogResult.OK)
{
// get name and address, write to file
}
On "OK" from the "Save Dialog", write the contents of the name and address field into a file. Use the File.WriteAllText method from System.IO.
Optional Challenge: Add Clear and Load buttons. Clear clears the input fields. Load opens a file dialog, then on OK loads the contents of the file into the input fields. In order to load the contents of the file back into the form, you will need to place some sort of separator between the fields, such as a comma. You will need to split the input text to separate it into values for each field.