0

当我按下刷新按钮重新加载列表框中的项目(名称 filesList)时,我的源代码出现此错误。

NullReferenceException 已处理错误对象引用未设置为对象的实例

Private Sub Timer1_Tick(ByVal sender As System.Object,
                        ByVal e As System.EventArgs) Handles Timer1.Tick
  'selected item is filepath
  Dim filePath = FilesList.SelectedItem.ToString  ' <-- here

我该如何纠正?

4

0 回答 0