DialogResult.OK takes two clicks

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!
 
H

Herfried K. Wagner [MVP]

* "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?
 
J

John

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



.
 
A

AlexS

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

Top