Coder 发表于 2016-2-17 01:46:50

SaveFileDialog出错

大家好。
似乎我无法创建SaveFileDialog的实例!并且它需要像附加图像中那样使用参数来提供它。
是否有任何方法可以解决此错误?
多谢。
编辑:kdub->固定的帖子标题

**** Hidden Message *****

kdub 发表于 2016-2-17 02:03:41

SaveFileDialog构造函数不接受参数。
新建SaveFileDialog(),然后设置属性。
https://msdn . Microsoft . com/en-us/library/system . windows . forms . save file dialog(v = vs . 110)。文件

Coder 发表于 2016-2-17 02:09:54

是的,
我想知道为什么这次它会给我那个错误信息!

kdub 发表于 2016-2-17 02:13:30

愚蠢的我,我以为你指的是
System.Windows.Forms.SaveFileDialog()
你的意思是
Autodesk.AutoCAD.Windows.SaveFileDialog
我应该猜到的。
----------------------------
提供更多有关对您不起作用的内容的详细信息。
编辑:固定帖子标题

kdub 发表于 2016-2-17 02:25:01

查看这些是否有帮助
http://through-the-interface.typepad.com/through_the_interface/2009/08/allowing-a-user-to-select-from-multiple-file-formats-inside-autocad-using-net.html
这是一个很好的例子http://through-the-interface.typepad.com/through_the_interface/2007/08/using-autocads-.html
这是一个很好的例子http://through-the-interface.typepad.com/through_the_interface/2007/03/replacing_the_o.html
这是一个很好的例子

Coder 发表于 2016-2-17 02:36:30

一点也不傻,但这就是我在
两种SvaeFileDialog方法Windows和AutoCAD之间混淆的事实。
我添加了NameSpace System.Windows.Forms.SaveFileDialog svd的完整路径.....这就是我所追求的。
非常感谢克里的及时帮助。
感谢链接,它们看起来很棒,信息量很大。
页: [1]
查看完整版本: SaveFileDialog出错