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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top