Setting default property fails because it is read only?
问题 This code was converted from VB6 to VB.Net: Public prvMainForm = VB6Form If prvMainForm IsNot Nothing Then CObj(prvMainForm).StatusBar.Panels(1) = "Initializing Folders..." End If (My code is quite long so I've just added this if block which is where the actual error occurs.) The error is seen on the single line inside the If statement: Property 'Item' is 'ReadOnly' 回答1: StatusBar.Panels(1) returns a MSComctlLib.Panel . StatusBar.Panels(1) = "Initializing Folders..." is valid in VB6 because