表单不会在设计模式下显示 - 未设置对象引用 [英] Form won't display in design mode - Object reference not set

查看:77
本文介绍了表单不会在设计模式下显示 - 未设置对象引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对ASP.Net非常有经验,所以我非常了解语言,但

这是我在VB.Net上的第一个重要的Windows应用程序,所以我没有遇到过

很多怪癖。我正在使用VB 2003.


有问题的表单编译完美,应用程序运行。但是,我的
无法查看表单的设计页面,只能查看代码页面。这只是

今天出现了。我听说过有关Form_Load活动的传言,

但是我没有找到任何有用的东西。


有人碰到过这个吗?让我知道什么代码可能会有所帮助,我会发布它的b $ b。


BTW,它继承自我创建的一个基本表单标准

例程。


感谢您的帮助!

解决方案

杰夫,


我在思考和思考会出现什么问题,但我想我已经得到了它。您习惯于单独的表单和代码。在windows中形成代码

和页面是相同的。不是y.aspx和y.vb而只是x.vb.


所以在解决方案资源管理器中推送那个form.vb并且窗体应该是

显示起来。 (当您设置解决方案资源管理器以显示所有文件时,您将看到

落后于x.vb和x.resx,当你认为它不严格时你可以比较

使用x.aspx)


加载事件与webform的工作方式几乎相同,但是有
课程没有ispostback。


Cor

我对ASP.Net很有经验,所以我非常了解语言,
但这个是我在VB.Net中的第一个重要的Windows应用程序,所以我还没有
遇到很多怪癖。我正在使用VB 2003.

有问题的表单编译完美,应用程序运行。但是,
我无法查看表单的设计页面,只能查看代码页面。这只是今天出现了。我听说过有关Form_Load事件的传闻,
但我没有找到任何帮助。



*" Jeff Molby" < JeffMolby@C_mc_st.n_t> scripsit:

我对ASP.Net非常有经验,所以我非常了解这门语言,但这是我在VB.Net上的第一个重要的Windows应用程序,所以我没有'还没遇到很多怪癖。我正在使用VB 2003.

有问题的表单编译完美,应用程序运行。但是,我无法查看表单的设计页面,只能查看代码页面。这只是今天出现了。我听说过有关Form_Load活动的传言,
但是我找不到任何有用的东西。

有人遇到过这个吗?让我知道哪些代码可能会有所帮助,我会发布它。

顺便说一句,它继承自我创建的基本表单以容纳一些标准的例程。 / blockquote>


如果代码不是太多,您可以发布表格代码。


-

Herfried K. Wagner [MVP]

< http://www.mvps.org/dotnet>


它只是在一个文件中,我想我只是使用了错误的术语。 设计

查看和代码视图可能会更合适,对吗?


" Cor" < no*@non.com>在消息中写道

新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...

嗨杰夫,

我在思考和思考会出现什么问题,但我想我已经明白了。您习惯于单独的表单和代码。在windows窗体中,代码
和页面是相同的。不是y.aspx和y.vb而只是x.vb.

所以在解决方案资源管理器中推送form.vb并且窗口形式
应该显示出来。 (当您设置解决方案资源管理器以显示所有文件时,您将看到x.vb x.resx后面的
,当您认为它不严格时,您可以将其与x.aspx进行比较)

加载事件与webform几乎相同,但是当然没有ispostback。

我对ASP.Net非常有经验,所以我非常了解语言,但

这是我在VB.Net中的第一个重要的Windows应用程序,所以我没有'' t


遇到了

许多怪癖。我正在使用VB 2003.

有问题的表单编译完美,应用程序运行。
但是,我

无法查看表单的设计页面,只能查看代码页面。这只是今天出现了。我听说过有关Form_Load事件



的传言,但我没有找到任何帮助。




I''m quite experienced with ASP.Net, so I know the language pretty well, but
this is my first significant windows app in VB.Net, so I haven''t encountered
many of the quirks yet. I''m using VB 2003.

The form in question compiles perfectly and the application runs. However, I
cannot view the design page of the form, only the code page. This just
cropped up today. I''ve heard rumors of the Form_Load event being involved,
but I haven''t found anything helpful.

Anyone come across this? Let me know what code might be helpful and I''ll
post it.

BTW, it inherits from a base form that I created to house some standard
routines.

Thanks for any and all help!

解决方案

Hi Jeff,

I was thinking and thinking about what would be the problem, but I think I
got it. You are used to a seperate form and code. In windows form the code
and the page are the same. Not y.aspx and y.vb but only x.vb.

So push on that form.vb in the solution explorer and the windowform should
show up. (When you set the solution explorer to show all files you will see
behind the x.vb a x.resx, when you take it not to strict you can compare
that with the x.aspx)

The load event works almost the same as with a webform, but there is of
course no "ispostback".

Cor

I''m quite experienced with ASP.Net, so I know the language pretty well, but this is my first significant windows app in VB.Net, so I haven''t encountered many of the quirks yet. I''m using VB 2003.

The form in question compiles perfectly and the application runs. However, I cannot view the design page of the form, only the code page. This just
cropped up today. I''ve heard rumors of the Form_Load event being involved,
but I haven''t found anything helpful.



* "Jeff Molby" <JeffMolby@C_mc_st.n_t> scripsit:

I''m quite experienced with ASP.Net, so I know the language pretty well, but
this is my first significant windows app in VB.Net, so I haven''t encountered
many of the quirks yet. I''m using VB 2003.

The form in question compiles perfectly and the application runs. However, I
cannot view the design page of the form, only the code page. This just
cropped up today. I''ve heard rumors of the Form_Load event being involved,
but I haven''t found anything helpful.

Anyone come across this? Let me know what code might be helpful and I''ll
post it.

BTW, it inherits from a base form that I created to house some standard
routines.



If it''s not too much code, you may post the code of your form.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


It is all in one file, I guess I''m just using the wrong terminology. "Design
View" and "Code View" would probably be more appropriate, right?

"Cor" <no*@non.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

Hi Jeff,

I was thinking and thinking about what would be the problem, but I think I
got it. You are used to a seperate form and code. In windows form the code
and the page are the same. Not y.aspx and y.vb but only x.vb.

So push on that form.vb in the solution explorer and the windowform should show up. (When you set the solution explorer to show all files you will see behind the x.vb a x.resx, when you take it not to strict you can compare
that with the x.aspx)

The load event works almost the same as with a webform, but there is of
course no "ispostback".

Cor

I''m quite experienced with ASP.Net, so I know the language pretty well, but

this is my first significant windows app in VB.Net, so I haven''t


encountered

many of the quirks yet. I''m using VB 2003.

The form in question compiles perfectly and the application runs. However, I

cannot view the design page of the form, only the code page. This just
cropped up today. I''ve heard rumors of the Form_Load event being


involved, but I haven''t found anything helpful.




这篇关于表单不会在设计模式下显示 - 未设置对象引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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