c#表单没有正确链接

时间:2016-07-15 19:06:35

标签: c# forms

在我当前的代码中,我有多个c#窗体,这些窗体都链接在一起并正常工作,但是一旦我创建了一个新窗体,我就无法将它链接到以前的窗体,但我仍然可以将其他窗体链接在一起任何想法为什么这发生了吗?

private void CloseBTN_Click(object sender, EventArgs e)
    {
        Form1 frm = new Form1();
        frm.Show();
        this.Close();
    }
//this one works to go to close form

    private void PassengerBTN_Click(object sender, EventArgs e)
    {
        LSum frm = new LSum();
        frm.Show();
        this.Close();
    }

//this one does not link to the form,whilst the code
//is the same and the form name is correct
//

我在整个程序中使用了相同的打开和关闭代码,并且一直工作正常,直到这一点

(目前有9种形式,第10种不会链接,表格上有限制

抱歉,如果这是一个愚蠢的问题)

编辑:经过一段时间强调为什么它不起作用并考虑到我发现为什么它不起作用的所有评论图1:http://prntscr.com/btmw5z我在&#内部创建了表单34;卢顿"文件夹因此导致它不以某种方式链接,为什么它不会链接我不确定但现在已经修复,感谢帮助人:D

0 个答案:

没有答案