更改表单名称 [英] Changing a forms name

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

问题描述

当我在项目中更改表单名称并且此表单是一个启动表单(在项目属性中设置)时,我收到一个错误,即函数sub main找不到。 visual basic应该在项目属性中自动更改它的名称,因为它会在代码窗口中自动更改它。


有没有修复它?

(我正在使用Visual Studio .NET 2003)

解决方案

* =?Utf-8?B?QWxleCBMZXZp?=< Al ******@discussions.microsoft.com> scripsit:

当我在项目中更改表单名称并且此表单是一个
启动表单(在项目属性中设置)时,我收到错误
functionsub main找不到。 visual basic应该自动在项目属性中更改它的名称,因为它会在代码窗口中自动更改它。



Doubleclick错误。将弹出一个对话框,让您选择新的

启动表单。如果没有,请转到项目选项对话框并在那里设置

启动对象。


-

Herfried K. Wagner [MVP]

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


我知道我可以手动更改启动表单,但有没有一种方法可以像代码窗口那样自动更改?


" Herfried K. Wagner [MVP]"写道:

* =?Utf-8?B?QWxleCBMZXZp?=< Al ****** @ discussion.microsoft.com> scripsit:

当我在项目中更改表单名称并且此表单是一个
启动表单(在项目属性中设置)时,我收到错误
functionsub main找不到。 visual basic应该自动在项目属性中更改它的名称,因为它会在代码窗口中自动更改它。



双击错误。将弹出一个对话框,允许您选择新的
启动表单。如果没有,请转到项目选项对话框并在那里设置启动对象。

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



* =?Utf-8?B?QWxleCBMZXZp?=< Al * *****@discussions.microsoft.com> scripsit:

我知道我可以手动更改启动表单,但有没有一种方法可以像代码窗口那样自动更改?




我不这么认为。但这是两次点击任务。


-

Herfried K. Wagner [MVP]

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


When I''m changing a forms name in the project and this form is a startup form (set in the project properties), I get an error that the function "sub main" is not found. The visual basic should automaticly change it''s name in the project properties as it changes it automaticly in the code window.

Is there any fixes for it?
(I''m using Visual Studio .NET 2003)

解决方案

* =?Utf-8?B?QWxleCBMZXZp?= <Al******@discussions.microsoft.com> scripsit:

When I''m changing a forms name in the project and this form is a
startup form (set in the project properties), I get an error that the
function "sub main" is not found. The visual basic should automaticly
change it''s name in the project properties as it changes it automaticly
in the code window.



Doubleclick the error. A dialog will popup that lets you select the new
startup form. If it doesn''t, go to the project options dialog and set
the startup object there.

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


I know that I can change the startup form manually, but is there a way that it would change automaticly as the code windows does?

"Herfried K. Wagner [MVP]" wrote:

* =?Utf-8?B?QWxleCBMZXZp?= <Al******@discussions.microsoft.com> scripsit:

When I''m changing a forms name in the project and this form is a
startup form (set in the project properties), I get an error that the
function "sub main" is not found. The visual basic should automaticly
change it''s name in the project properties as it changes it automaticly
in the code window.



Doubleclick the error. A dialog will popup that lets you select the new
startup form. If it doesn''t, go to the project options dialog and set
the startup object there.

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



* =?Utf-8?B?QWxleCBMZXZp?= <Al******@discussions.microsoft.com> scripsit:

I know that I can change the startup form manually, but is there a way that it would change automaticly as the code windows does?



I don''t think so. But that''s a two-clicks task.

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


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

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