Author Topic: Error with SaveFileDialog  (Read 1776 times)

0 Members and 1 Guest are viewing this topic.

Coder

  • Swamp Rat
  • Posts: 827
Error with SaveFileDialog
« on: February 17, 2016, 01:46:50 AM »
Hello guys.

It seems that I can't make an instance of SaveFileDialog ! and it requires to feed it with the arguments as in the attached image.

Is there any work around this error?

Thanks a lot.




edit:kdub->fixed post title
« Last Edit: February 17, 2016, 03:20:55 AM by kdub »

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2140
  • class keyThumper<T>:ILazy<T>
Re: Error with SvaeFileDialog
« Reply #1 on: February 17, 2016, 02:03:41 AM »
The SaveFileDialog constructor does not take parameters.

New the SaveFileDialog () then set properties.

https://msdn.microsoft.com/en-us/library/system.windows.forms.savefiledialog(v=vs.110).aspx
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

Coder

  • Swamp Rat
  • Posts: 827
Re: Error with SvaeFileDialog
« Reply #2 on: February 17, 2016, 02:09:54 AM »
Yes,
I wonder why it gives me that error message this time !

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2140
  • class keyThumper<T>:ILazy<T>
Re: Error with SaveFileDialog
« Reply #3 on: February 17, 2016, 02:13:30 AM »
Silly me , I assumed you meant the System.Windows.Forms.SaveFileDialog()

Did you mean Autodesk.AutoCAD.Windows.SaveFileDialog

I should have guessed that.

//----------------------------

Provide more detail about what doesn't work for you .


edit:fixed post title
« Last Edit: February 17, 2016, 02:27:12 AM by kdub »
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2140
  • class keyThumper<T>:ILazy<T>
« Last Edit: February 17, 2016, 02:31:04 AM by kdub »
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

Coder

  • Swamp Rat
  • Posts: 827
Re: Error with SaveFileDialog
« Reply #5 on: February 17, 2016, 02:36:30 AM »
Silly me , I assumed you meant the System.Windows.Forms.SaveFileDialog()
Not silly at all but that is the truth  :wink:
I confused between the two SvaeFileDialog methods, Windows and AutoCAD. sorry for that.

I added the full path of the NameSpace System.Windows.Forms.SaveFileDialog svd ..... and that 's what I was after.

Many thanks Kerry for your prompt help.

And thanks for the links , they look great and very informative.

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2140
  • class keyThumper<T>:ILazy<T>
Re: Error with SaveFileDialog
« Reply #6 on: February 17, 2016, 02:49:42 AM »

Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.