English 中文(简体)
视觉演进室 C# 失踪的成分
原标题:Visual Studio C# form missing components

我的实验室伙伴和我正在C#的2008年视觉演播室开展一个学校项目。 他向我发送了该项目的最新版本。 当我宣布开放时,我以前创建的一些形式,但并非全部,现在就失去了所有增加的内容。 然而,当我管理该项目时,各组成部分就已经存在并发挥作用。 除边界外,在形式上的一切都是“隐蔽”。

我能如何接触缺失的部件和ed弄形式? 展览会活跃。

似乎与以下法典类似,在每种形式(但并非我)的法典中增加了。 我在互联网的其他地方读到,这部法律可以由视觉网站生成。 这个问题吗? 如果是的话,那么,如何在我的法典中添加视像器?

private void InitializeComponent()
        {
            this.SuspendLayout();
            // 
            // VideoPoker
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.ClientSize = new System.Drawing.Size(804, 549);
            this.Name = "VideoPoker";
            this.Load += new System.EventHandler(this.VideoPoker_Load_1);
            this.ResumeLayout(false);

        }

谢谢。

问题回答

最初的响应方法是视力演播室自动添加的。

As th name implies, every property of the form itself is initialized and the same goes for any object that you put into the form within the Designer. Everthing that you edit within the designer finally goes into this code section - automatically.

你们永远不应以人工的方式对待这一法典。

关于缺失的控制措施,我相信,出于某种原因,该法被删除,将其归入通过财产表格获得的控制权。

如果初始责任(责任)法中的守则仍然含有类似内容,请加以核对。

this.Controls.Add(this.label1);
this.Controls.Add(this.textBox1);

每种控制都应采取的形式。

这些路线应在方法接近尾声时予以缩小。

视觉演播室通常在Designer.cs下增加开端编辑的方法,在你增加新的控制时,这一方法得到修改,以补充新的控制。 您在收回现有档案后可以尝试的事项

  1. 检查初始责任是否包含所有管制的代号。

  2. 清理现有的法典,并重组该项目。

  3. 在解决方案探索者中,确保你的设计者直接在您的专栏下,而不是在任何其他档案(如resx)下。 例如,如果在resx文档中添加了你的设计者档案,你会试图将设计者档案从你的项目中删除(在接回后),然后再添加。 它应当增加。





相关问题
How to speed up Visual Studio 2008? Add more resources?

I m using Visual Studio 2008 (with the latest service pack) I also have ReSharper 4.5 installed. ReSharper Code analysis/ scan is turned off. OS: Windows 7 Enterprise Edition It takes me a long time ...

Trouble with VS.PHP installing it s own Apache server

I tried installing VS.PHP some time ago. I was intent on seeing how it works with my current setup. I immediately encountered trouble: none of my sites wanted to render. On windows, I m using WAMP ...

Jquery and Intellisense in VS 2008 with hotfix and SP1

I followed Scott Guthrie s instructions as outlined at http://weblogs.asp.net/scottgu/archive/2008/11/21/jquery-intellisense-in-vs-2008.aspx but no avail: intellisense still doesn t work. Any tips?

Fixing "error C2065: undeclared identifier"

First off, I m completely out of my depth here. So the question might be the wrong one to ask, but here goes... As per the accepted answer to this question, I m trying to compile the bindings for the ...

View whitespace in VS2008

After Jeph most recent post: http://www.codinghorror.com/blog/archives/001310.html, I thought to myself it would be fun to see if any of my code has those trailing whitespaces. So I open Visual ...

热门标签