这几乎是不言自明的。但无论如何我会解释:
我创建了一个字典:
' import part
Imports System.Collections.Generic
'module declarations
Public Event_Conf As New Dictionary(Of String, Object)
'sub
Event_Conf("intro line") = ""
' here's the drama
WelcomeForm.Heading1.Text = Event_Conf("intro line") 'key not found.
所以我在调试器中检查变量的内容,我看到了 3 个键,其中一个完全是一个名为“intro line”的字符串!哇!一切都是小写字母,没有有趣的字符。
我做错了什么(除了为这个项目选择 .NET,我的意思是)?
编辑: 有些事情搞砸了
WelcomeForm.Heading1.Text = "x"
返回完全相同的错误。
- heading1 是welcomeform 上的标签控件。
- 视觉基本速递 2008
- 视窗 7 64 位
我重新启动了视觉工作室(它在 90 年代创造了奇迹),但同样的错误又回来了。
Edit2:内部异常看起来一样