Wrox Programmer Forums
|
BOOK: Beginning C# 3.0 : An Introduction to Object Oriented Programming ISBN: 978-0-470-26129-3
This is the forum to discuss the Wrox book Beginning C# 3.0 : An Introduction to Object Oriented Programming by Jack Purdum; ISBN: 9780470261293
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning C# 3.0 : An Introduction to Object Oriented Programming ISBN: 978-0-470-26129-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 26th, 2008, 02:00 AM
Registered User
 
Join Date: Oct 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help with page 42 - 43 of the text

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
 
Old October 26th, 2008, 07:24 AM
Friend of Wrox
 
Join Date: Sep 2008
Posts: 234
Thanks: 0
Thanked 32 Times in 30 Posts
Default

I'm assuming that you did write the code for the button's Click event, as shown on page 44. Other events can be associated with a button object and, if the wrong event is coded, nothing would happen when the button is clicked.

If you've done that correctly, post your Click event code here so we can look at it.


Dr. Purdum


Jack Purdum, Ph.D.
Author: Beginning C# 3.0: Introduction to Object Oriented Programming (and 14 other programming texts)
 
Old October 28th, 2008, 10:51 PM
Registered User
 
Join Date: Oct 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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;
}






Similar Threads
Thread Thread Starter Forum Replies Last Post
Submit text to main page from text area... user0b PHP How-To 2 June 30th, 2008 09:52 PM
"MSDTC on server 'N\2984CABA-D249-43' is unavailab nesrine SQL Server DTS 1 April 23rd, 2007 11:32 AM
Listing 23-43 wombel BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 November 30th, 2006 09:40 AM
moviesite.php - error line 43 Chudz BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 August 2nd, 2004 03:52 AM
how to print multiple text page jgiang Java GUI 0 June 28th, 2004 05:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.