windows server 2008 R2 X64 不能使用OpenFileDialog 类吗
Dim OpenFile As OpenFileDialog = New OpenFileDialog With
{
.Multiselect = True,
.Title = "请选择要导入数据的 Excel 文件",
.Filter = "Microsoft Office Excel 的文件|*.xlsx;*.xls",
.RestoreDirectory = True
}
If OpenFile.ShowDialog() = Windows.Forms.DialogResult.Cancel Then
OpenFile.Dispose()
Exit Sub
End If
一执行就报错。