Loadfromxml 似乎不起作用。它读取 XML 文件,然后分支到返回要加载的表单的函数,该函数返回表单,但它从不加载表单。他们从不出现。任何想法我做错了什么?下面的代码片段
DockPanel.LoadFromXml(configFile, AddressOf ReloadContent)
...
Private Function ReloadContent(ByVal persistString As String) As IDockContent
Try
Debug.Print(Now() & " start ReloadContent " & persistString)
Me.Cursor = Cursors.WaitCursor
Select Case persistString
Case "PIX4.frmTreeView"
Return frmTreeView
...