我正在尝试在某个项目中使用propertygrid来显示My.Settings
。但每当我启动项目时,属性网格都会保持空白。
使用propertygrid的子站点:
Private Sub frmMain_Load()
lblNothingFound.Visible = False
'// Set listview column sizes
Filename.Width = 135
AssyNo.Width = 112
BomRevision.Width = 44
OrderQty.Width = 67
'// Show settings in PropertyGrid
PropertyGrid1.SelectedObject = My.Settings
End Sub
设定:
<userSettings>
<Converter_Import.My.MySettings>
<setting name="BJISource" serializeAs="String">
<value>"Path1"</value>
</setting>
<setting name="BJITarget" serializeAs="String">
<value>"Path2"</value>
</setting>
<setting name="BCISource" serializeAs="String">
<value>"Path3"</value>
</setting>
<setting name="BCITarget" serializeAs="String">
<value>"Path4"</value>
</setting>
</Converter_Import.My.MySettings>
</userSettings>`
我真的不知道上述是否足够 任何建议将不胜感激!
鲍里斯