我的表格怎么了?错误??? [英] what happened to my form??? Bug???

查看:64
本文介绍了我的表格怎么了?错误???的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不明白这种行为...


i打开我创建的vb表单并希望将其保存为新名称并进行一些

更改


当我这样做时(在vs2005中)原始形式失去了它的ui


是什么意思?它变成了一个直接的类

i dont understand this behaviour...

i open a vb form i created and want to save it as a new name and make some
changes

when i do (in vs2005) the original form looses its ui

whats up with that??? it turned into a straight class

推荐答案

查看类后面的代码。如果你在同一个项目中有原始和新的两个

,那么类后面的代码可能都有相同的名称。

将新的代码更改为其他内容而你应该再次将其视为

表格。


我不确定这是不是在你的情况下发生了什么但听起来好像

很可能。


" Brad" < br ** @ discuss.microsoft.com写信息

新闻:5A ************************** ******** @ microsof t.com ...
Look at the code behind class. If you have the original and the new one both
in the same project, both code behind classes probably have the same name.
Change the new one to something else and you should once again see it as a
form.

I am not sure this is exactly whats happening in your case but it sounds
quite likely.

"Brad" <Br**@discussions.microsoft.comwrote in message
news:5A**********************************@microsof t.com...

>我不明白这种行为......


i打开我创建的vb表单,并希望将其保存为新名称并进行一些

更改


当我这样做时(在vs2005中)原始形式失去了它的ui

最新的???它变成了一个直接的课程
>i dont understand this behaviour...

i open a vb form i created and want to save it as a new name and make some
changes

when i do (in vs2005) the original form looses its ui

whats up with that??? it turned into a straight class





尝试过,仍然丢失了ui设计师链接到我原来的表格


tried that, still lost ui designer link to my original form


我刚刚创建了一个简单的Windows应用程序,保存它然后打开了创建的

默认表单(Form1)。然后我选择另存为Form2。在VS保存了我的

更改后,我的项目现在包含form2,而form1不再是

项目的一部分。这是你遇到的问题吗?


如果是这样,发生的事情是你并没有真正添加新表格。你

只是重命名现有的。如果要复制现有的

表单,最简单的方法是复制designer.vb和.vb文件,然后将
重命名为。重命名后,只需使用添加现有

项目添加它们即可。在您的项目中,更改班级名称,您的项目中应该有两个表格




告诉我你要遵循的步骤或者你可以发送项目和我们

应该能够识别问题。

问候

Parag

" Brad" < br ** @ discussion.microsoft.com写信息

新闻:F6 ************************** ******** @ microsof t.com ...
I just created a simple windows application, saved it and then opened up the
default form (Form1) created. Then i chose save as Form2. After VS saved my
changes, my project now contained form2 and form1 was no longer part of the
project. Is this the problem you are having?

If so what is happening is that you are not really adding a new form. You
are just renaming the existing one. If you want to duplicate an existing
form, the easiest way is to copy the designer.vb and .vb files and then
rename them. After they have been renamed just add them using "Add Existing
Item" to your project, change the class name and you should have both forms
in your project.

Let me know the steps you are following or you can send the project and we
should be able to identify the problem.
Regards
Parag
"Brad" <Br**@discussions.microsoft.comwrote in message
news:F6**********************************@microsof t.com...

>

尝试过,仍然丢失了ui设计师链接我原来的表格
>
tried that, still lost ui designer link to my original form



这篇关于我的表格怎么了?错误???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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