表单属性丢失 [英] Form properties are missing

查看:69
本文介绍了表单属性丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我在C#中创建了一个新表单,我无法获得

此表单上的任何属性,也无法添加对它的新控制。


任何想法?

Simon Jefferies

Hello,

I have created a new form within C# and I am unable to get any properties on
this form and also unable to add a new controls to it.

Any ideas?
Simon Jefferies

推荐答案

希望你从Windows窗体类扩展它

你还记得在这个窗口中调用windows窗体构造函数


" Simon Jefferies" < JE ************* @ hotmail.com>在消息中写道

news:eK ************** @ TK2MSFTNGP11.phx.gbl ...
Hope you extended it from windows form class
Did you remember to call the windows form constructor in this one

"Simon Jefferies" <je*************@hotmail.com> wrote in message
news:eK**************@TK2MSFTNGP11.phx.gbl...
你好,
我在C#中创建了一个新表单,我无法在此表单上获得任何属性
,也无法为其添加新控件。

任何想法?
Simon Jefferies
Hello,

I have created a new form within C# and I am unable to get any properties on this form and also unable to add a new controls to it.

Any ideas?
Simon Jefferies



我只是从Add New Item向导创建它。它在设计器模式中提供了表单,我可以更改为代码视图,但我不能对表单本身做任何事情。


它派生自System.Windows.Forms .Form类并且确实有一个构造函数。


Simon

" Anurag Setia" <公顷****** @ hotmail.com>在消息新闻中写道:un ************** @ TK2MSFTNGP12.phx.gbl ...
I simply created it from the Add New Item wizard. It comes up with the form in designer mode and I can change to code view but I can''t do anything with the form itself.

It is derived from System.Windows.Forms.Form class and does have a constructor.

Simon
"Anurag Setia" <ha******@hotmail.com> wrote in message news:un**************@TK2MSFTNGP12.phx.gbl...
希望你从windows表格类扩展它
你记得在这个中调用windows表单构造函数

Simon Jefferies < JE ************* @ hotmail.com>在消息中写道
新闻:eK ************** @ TK2MSFTNGP11.phx.gbl ...
Hope you extended it from windows form class
Did you remember to call the windows form constructor in this one

"Simon Jefferies" <je*************@hotmail.com> wrote in message
news:eK**************@TK2MSFTNGP11.phx.gbl...
你好,
我在C#中创建了一个新表单,我无法在
Hello,

I have created a new form within C# and I am unable to get any properties
此表单中获取任何属性


,也无法为其添加新控件。

任何想法?
Simon Jefferies

this form and also unable to add a new controls to it.

Any ideas?
Simon Jefferies




你得到的任何东西所有在左侧的工具箱中。

除了确保在设计模式中选择表格时,

u注意属性,以确保这一点 - 对点击表格并点击属性


Plz让我知道更新,因为它对我来说是新的,因为它得到了

" Simon Jefferies" < JE ************* @ hotmail.com>在消息新闻中写道:eD ************** @ TK2MSFTNGP09.phx.gbl ...

我只是从Add New Item向导创建它。它在设计器模式中提供了表单,我可以更改为代码视图,但我不能对表单本身做任何事情。


它派生自System.Windows.Forms .Form类并且确实有一个构造函数。


Simon

" Anurag Setia" <公顷****** @ hotmail.com>在消息新闻中写道:un ************** @ TK2MSFTNGP12.phx.gbl ...
Do you get anything at all in the toolbox to the left.
And besides make sure in the design mode that the form is selected when
u look out for properties, to make sure of this - right click the form and click properties

Plz let me know of the updates coz this is as new to me as it gets
"Simon Jefferies" <je*************@hotmail.com> wrote in message news:eD**************@TK2MSFTNGP09.phx.gbl...
I simply created it from the Add New Item wizard. It comes up with the form in designer mode and I can change to code view but I can''t do anything with the form itself.

It is derived from System.Windows.Forms.Form class and does have a constructor.

Simon
"Anurag Setia" <ha******@hotmail.com> wrote in message news:un**************@TK2MSFTNGP12.phx.gbl...
希望你从windows表格类扩展它
你记得在这个中调用windows表单构造函数

Simon Jefferies < JE ************* @ hotmail.com>在消息中写道
新闻:eK ************** @ TK2MSFTNGP11.phx.gbl ...
Hope you extended it from windows form class
Did you remember to call the windows form constructor in this one

"Simon Jefferies" <je*************@hotmail.com> wrote in message
news:eK**************@TK2MSFTNGP11.phx.gbl...
你好,
我在C#中创建了一个新表单,我无法在
Hello,

I have created a new form within C# and I am unable to get any properties
此表单中获取任何属性


,也无法为其添加新控件。

任何想法?
Simon Jefferies

this form and also unable to add a new controls to it.

Any ideas?
Simon Jefferies




这篇关于表单属性丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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