此代码已从VB6转换为VB.Net:
Public prvMainForm = VB6Form
If prvMainForm IsNot Nothing Then
CObj(prvMainForm).StatusBar.Panels(1) = "Initializing Folders..."
End If
((我的代码很长,所以我刚刚添加了这个if
块,这是发生实际错误的地方。)
错误在If语句内的单行上显示:
属性“项目”为“只读”
[StatusBar.Panels(1)
返回MSComctlLib.Panel
。