Quote:
quote:Originally posted by Whiteetea
I am on page 44 currently, on Fig. 2-14; when I tried to press Display, nothing came out. So I guess the problem came from page 42 to 43 Table 2.2 from txtName, txtAddress .... all the way to btnExit.
For the ObjectName: txtName, I double click the TextBox from Toolbox to move to form. Then from the properties, I go to (Name) and change the original name to txtName.
And I did the same for the rest of object name until btnExit.
So did I add or miss out anything or did it completely wrong?
If possible can anyone send me the completed files on the problem up to pg 44 only.
Thanks
|
- Did started the application by going to the menu item Debug then Start Debugging?
- If you have successfully launched the application and the button does nothing then go back to visual studio and dbl click the button "Display" on the form designer so you can go straight to the code:
private void btnDisplayOutput_Click(object sender, EventArgs e)
{
String buffer;
buffer = "Mailing Label:" + Environment.NewLine +
Environment.NewLine;
buffer = buffer + " Name: " + txtName.Text +
Environment.NewLine;
buffer = buffer + "Address: " + txtAddress.Text +
Environment.NewLine;
buffer = buffer + " City: " + txtCity.Text +
" State: " + txtState.Text +
" Zip: " + txtZip.Text;
txtDisplayOutput.Text = buffer;
}