Click here to Skip to main content
15,889,802 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Following Head First C#. Most forum members seem to have access to this eBook. Running the code for a contact management app which is basically an electronic rolladex. The Logo is supposed to generate the app's author which, for the purpose of the excercise, is me. I've include the code Ive inserted below. Hoping for guidance to troubleshoot this. Also, I sometimes launch Visual studio only to find my projects with a shortcut link. How can one correct this. Much thanks as I await a reply.

The question is ammended as follows:
Much thanks for the timely reply. Following an excercise of creating a contacts app. Have completed the first steps. There is a feature where a logo is added to the form. The logo is supposed to be clickable so the the developer/s name is displayed. I believe that the code that would enable this feature is correct and should launch. I have uploaded two pages of the excercise below in the hopes that it would help to explain what the goal is.

https://skydrive.live.com/redir.aspx?cid=52b21d2f3f75a51a&resid=52B21D2F3F75A51A!977&parid=root[^]









 using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Head_First_Contacts_Project_II
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {
MessageBox.Show ("Contact List 1.0.\nWritten by: Maurice Newsome",  "About");     
Posted
Updated 7-May-12 13:24pm
Comments
[no name] 7-May-12 18:46pm    
I am not sure what you are asking here.
mauricemcse 15-May-12 12:05pm    
Greetings: Much thanks for responding to my post. Attempting to cultivate some developer skills and have encountered an issue. The required SQL database needs configuration to include:

Identity True
IdentityIncrement 1
Identity Seed 1
Is RowGuid False

The eBook shows a view that I have not found a way to produce. The image is uploaded to: https://skydrive.live.com/redir.aspx?cid=52b21d2f3f75a51a&resid=52B21D2F3F75A51A!994&parid=root

I write to inquire if the ContactID table can be changed to inlude the parameters above. Working with Visual Studio 2008 Team System and SQL Server Compact 2010 3.5.

If the table cannot be ammended I understand that a command line entry can remove a table. Hoping you can offer some guidance on how best to proceed. Much thanks for your attention as I await your reply.
Sergey Alexandrovich Kryukov 7-May-12 18:50pm    
"How can one correct this" is not a question, and not just because the question mark is missing. You should explain what needs fixing. Who would bother to answer based on one's guesswork?
--SA
Clifford Nelson 7-May-12 20:36pm    
Reason for my vote of 1
Incomplete. The problem is probably in the code behind.
mauricemcse 8-May-12 9:02am    
Meant to give you the highest rating. Does it appear as corrected? Please advise..

I can see that you are missing the three brackets "}" at the end of the code, one to close the pictureBox1_Click method, one to close the class, and the last to close the namespace. Are you getting a compile error, or a runtime error?
 
Share this answer
 
All:

Much appreciation for the support. Although I had launched debug earlier the program ran without error I changed no code but it worked. Ive uploaded the outcome to my windows live site https://skydrive.live.com/?sc=photos&cid=52b21d2f3f75a51a#cid=52B21D2F3F75A51A&id=52B21D2F3F75A51A%21980&sc=photos[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900