不知道是在什么地方定义的,看看定义是否有问题?
System.Windows.Forms.OpenFileDialog用在Windows Form中是没有问题的。