Visual Studio 2008 Team System中的代码疑难解答 [英] Code troubleshooting in Visual Studio 2008 Team System

查看:70
本文介绍了Visual Studio 2008 Team System中的代码疑难解答的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按照Head First C#的顺序进行.大多数论坛成员似乎都可以访问此电子书.运行联系人管理应用程序的代码,该应用程序基本上是电子rolladex.徽标应生成该应用程序的作者,出于锻炼目的,该作者是我.我已经在下面插入了Ive的代码.希望获得指导以解决此问题.另外,有时我启动Visual Studio只是为了找到带有快捷链接的项目.如何纠正这一点.非常感谢,我等待答复.

问题修正如下:
非常感谢您的及时答复.练习创建一个联系人应用程序.已经完成了第一步.有一个功能,其中徽标添加到窗体.该徽标应该是可单击的,因此将显示开发人员的名称.我相信启用该功能的代码是正确的,应该启动.我在下面上传了两页练习内容,希望对解释目标是有帮助的.

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

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");     

推荐答案

我看到您在代码末尾缺少三个方括号}",一个关闭了pictureBox1_Click方法,一个关闭了该类,最后关闭命名空间.您遇到编译错误还是运行时错误?
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?


全部:

非常感谢您的支持.尽管我早先启动了调试程序,但程序没有错误地运行,但我没有更改任何代码,但它可以正常工作.我已将结果上传到我的Windows Live网站
^ ]
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[^]


这篇关于Visual Studio 2008 Team System中的代码疑难解答的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆