DialogResult.OK takes two clicks

  • Thread starter Thread starter John
  • Start date Start date
J

John

I am using code that creates a SaveFileDialog object with
the filter and file name properties. It works fine until I
get to this code.

If SaveFileDialog1.ShowDialog() = DialogResult.OK then

Msgbox(SaveFileDialog1.FileName)'

End IF

When I run the program, I have to click "save" twice in
the Dialog box in order to see my message box.

Thanks for your time!
 
* "John said:
I am using code that creates a SaveFileDialog object with
the filter and file name properties. It works fine until I
get to this code.

If SaveFileDialog1.ShowDialog() = DialogResult.OK then

Msgbox(SaveFileDialog1.FileName)'

End IF

When I run the program, I have to click "save" twice in
the Dialog box in order to see my message box.

Which version of .NET and Windows do you use?
 
Thanks!, I'll look at save handler

-----Original Message-----
Hi, John,

you need to check the code in your "save" handler. I am pretty sure problem
resides there

HTH
Alex



.
 
Hi, John,

you need to check the code in your "save" handler. I am pretty sure problem
resides there

HTH
Alex
 
Back
Top