粘贴一些代码后控制消失。为什么???? [英] Controls disapear after pasting some code. WHY????

查看:68
本文介绍了粘贴一些代码后控制消失。为什么????的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

我一直在设计一个包含大约100个左右控件的表单,今天我将b $ b粘贴到另一个测试项目中的一些代码然后全部表格上的

控件从视图中消失了。如果我看一下

Region" Windows窗体设计器生成的代码部分我可以看到控件的代码

。除了一些控件,如选项卡控件和

一些标签(这些控件突出显示有错误)。为什么会发生这个

,以及如何让控件重新进入视图。从此没有。

感谢您的帮助。

Michael

解决方案

< blockquote> Michael写道:

大家好。
我一直在设计一个包含大约100个左右控件的表单,今天我将其他测试项目中的一些代码粘贴到这个和然后表格上的所有
控件都从视图中消失了。如果我看一下
地区 Windows窗体设计器生成的代码部分我可以看到控件的代码
。除了一些控件,如选项卡控件和某些标签(这些控件突出显示有错误)。为什么会发生这种情况,以及如何让控件重新进入视图。从那以后就没有了。
感谢您的帮助。
迈克尔




您确定控件不在那里而且只是被隐藏另一个

控制。属性视图中有一个下拉列表,显示表单上的所有

控件。你的控件是否列在那里?


克里斯


亲爱的迈克尔,


你能告诉我们粘贴了什么代码以及错误是什么,你是否已经获得了b $ b?如果表单上的控件存在某种错误,则不会显示这些

控件。所以你需要首先解决这些问题(如果你很幸运),你可以再次看到控件(现在,他们加载

没有错误)。 />

希望我能帮到你,


Michel van den Berg


" Michael" <弥***** @ discussions.microsoft.com> schreef in bericht

news:50 ********************************** @ microsof t.com ...

大家好。
我一直在设计一个包含大约100个控件的表单,今天我将其他测试项目中的一些代码粘贴到这个然后表格上的所有
控件都从视图中消失了。如果我看一下
地区 Windows窗体设计器生成的代码部分我可以看到控件的代码
。除了一些控件,如选项卡控件和/或某些标签(这些控件突出显示有错误)。为什么会发生这种情况,以及如何让控件重新进入视图。从那以后就没有了。
感谢您的帮助。
迈克尔





" I Don 不喜欢垃圾邮件 < no@spam.com>在消息中写道

新闻:e8 ************** @ TK2MSFTNGP12.phx.gbl ...

你确定控件不存在,只是被另一个
控制所隐藏。属性视图中有一个下拉列表,显示表单上的所有
控件。你的控件是否列在那里?

Chris




我喜欢使用Document Outline窗口(在
表格。


Ctrl-Alt-T


Greg

Hi Everyone.
I have been designing a form with about 100 or so controls and today I
pasted some code from another test project into this one and then all the
controls on the form disapeared from view. If I look at the
Region " Windows Form Designer generated code" section I can see the code
for the controls are there. Except for a few controls, like a tab control and
some labels (these controls are highlighted with errors). Why would this
happen, and how do I get the control back into view. This makes no since.
Thanks for any help.
Michael

解决方案

Michael wrote:

Hi Everyone.
I have been designing a form with about 100 or so controls and today I
pasted some code from another test project into this one and then all the
controls on the form disapeared from view. If I look at the
Region " Windows Form Designer generated code" section I can see the code
for the controls are there. Except for a few controls, like a tab control and
some labels (these controls are highlighted with errors). Why would this
happen, and how do I get the control back into view. This makes no since.
Thanks for any help.
Michael



Are you sure the controls aren''t there and are just hidden by another
control. There is a dropdown in the property view that shows all
controls on the form. Is your controls listed in there?

Chris


Dear Michael,

Could you please tell us what code was pasted and what the errors are, you
are getting? If the controls on a form have some kind of error, these
controls will not show up. So you need to resolve these first and then (if
you are lucky) you would get the controls visible again (as now, they load
without errors).

Hope I helped you,

Michel van den Berg

"Michael" <Mi*****@discussions.microsoft.com> schreef in bericht
news:50**********************************@microsof t.com...

Hi Everyone.
I have been designing a form with about 100 or so controls and today I
pasted some code from another test project into this one and then all the
controls on the form disapeared from view. If I look at the
Region " Windows Form Designer generated code" section I can see the code
for the controls are there. Except for a few controls, like a tab control
and
some labels (these controls are highlighted with errors). Why would this
happen, and how do I get the control back into view. This makes no since.
Thanks for any help.
Michael




"I Don''t Like Spam" <no@spam.com> wrote in message
news:e8**************@TK2MSFTNGP12.phx.gbl...

Are you sure the controls aren''t there and are just hidden by another
control. There is a dropdown in the property view that shows all
controls on the form. Is your controls listed in there?

Chris



I like to use the Document Outline window for this (finding a control on a
form).

Ctrl-Alt-T

Greg


这篇关于粘贴一些代码后控制消失。为什么????的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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