我是新手,刚开始学C#我创建一了新的Windows应该程序为什么程序运行完之后,我再一次运行提示我:错误 1 无法将文件“obj\Debug\First.exe”复制到“bin\Debug\First.exe”。文件“bin\Debug\First.exe”正由另一进程使用,因此该进程无法访问该文件。 First
我必需在任务管理器把First.exe结束掉才能正常运行
我必需在任务管理器把First.exe结束掉才能正常运行
解决方案 »
- WebBrowser与HTMLDocument如何替换页面文字
- c#通过qq邮件服务器发送邮件出错,各位大侠看看
- winfrom按钮调用窗体最小化方法
- 网站新闻中要插入图片,一般是怎么做的
- 关于网页中图片移动的问题--跪求大虾拔刀相助
- 怎样获取到win7所有桌面的图标并显示到我所要显示的控件上
- 关于 ListView
- 窗体间传值,将子窗体设为静态的来接收数据,这样的方法会有什么问题?
- 用C#编写控制机器人移动=A=
- Graphics 绘制的图片我保存为了bmp格式,为什么单片机识别不出来啊,求解
- 新手问题。Error: Type and identifier are both required in a foreach statement
- .net里什么数据结构performace最好?
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;namespace First
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
} private void Form1_Load(object sender, EventArgs e)
{
} private void sampleButton_Click(object sender, EventArgs e)
{
Form2 newForm = new Form2();
newForm.Show();
this.Hide();
}
}
}
Form2.csusing System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;namespace First
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
} private void label1_Click(object sender, EventArgs e)
{ } private void button1_Click(object sender, EventArgs e)
{
Form1 newForm = new Form1();
newForm.Show();
this.Hide();
}
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;namespace First
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
} private void Form1_Load(object sender, EventArgs e)
{
} private void sampleButton_Click(object sender, EventArgs e)
{
Form2 newForm = new Form2();
newForm.Show();
this.Hide();
} private void 文件ToolStripMenuItem_Click(object sender, EventArgs e)
{
} private void 打开ToolStripMenuItem_Click(object sender, EventArgs e)
{
Form2 newForm = new Form2();
newForm.Show();
this.Hide();
}
}
}