我更改了表单名称后的错误 [英] Errors after I have changed my form name

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

问题描述

Hello All,

Hello All,

我有一个非常烦人的错误,可能是一个菜鸟错误。我会在这里解释一下。我编写了一个使用不同形式的程序,一个frmMain,一个frmMap,一个frm VerticalPath。现在我想我可以更好地将frmMap的名称更改为frmRoutePlanner
所以我这样做了。我更改了属性窗口中的名称和代码中的引用。我可以用一个按钮打开和关闭窗体,但是当我用窗口右上方的顶部关闭它,后来又想重新打开它时出现错误。

I have a very annoying error and probably a rookie mistake. I will try to explain it here. I have written a program which uses different forms, a frmMain, a frmMap, a frm VerticalPath. Now I thought I could change the name of frmMap better to frmRoutePlanner so I did this. I changed the name in the properties window and the reference in my code. I can open and close the form with a button but when I close it with the cross top right of the window and later want to reopen it again I got an error.

System.ObjectDisposedException,无法访问已移除的对象

System.ObjectDisposedException, No acces to a removed object

我一直在寻找解决此问题但我真的不知道。我检查了设计器文件和所有其他属性以及我的事件处理程序。但所有名字都相应改变了。我应该在哪里查看是否有任何
错误的参考?

I've been searching all over the place to solve this but I really have no idea. I checked the designer files and all other properties as well my eventhandlers. But all names all changed accordingly. Where should I look further to find out if there is any wrong reference made?

一些帮助和建议将受到高度赞赏。

Some help and advise would be highly appreciated.

谢谢

推荐答案

嗨雷蒙德!

你能把这部分引起错误的代码放在这里吗?

Can You put here the part of the code thats raise the error?

我希望可以帮助你。

Anderson。


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

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