gpt4 book ai didi

c# - 编译 C# winForms 时出错

转载 作者:行者123 更新时间:2023-11-30 14:32:51 25 4
gpt4 key购买 nike

<分区>

我正在尝试在 Visual Studio 2010 中使用 C# 构建我的第一个 Winforms。它只是一个简单的表单,带有一个关闭表单的按钮单击事件。这是代码:

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 WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void btnEnglish_Click(object sender, EventArgs e)
{
this.Text = " Do you speak English? ";

}

private void btnSpanish_Click(object sender, EventArgs e)
{
this.Text = " Do you speak Spanish? ";
}

private void btnOk_Click(object sender, EventArgs e)
{
Application.Exit();
}
}
}

这似乎是我的项目中缺少某些配置属性或类似的东西,我无法找出到底是什么?

一些搜索让我找到了 http://msdn.microsoft.com/en-us/library/fa13yay7.aspx但我不确定如何在我的代码或项目属性中应用它,或者是否存在其他问题?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com