PC Review


Reply
Thread Tools Rate Thread

DialogResult.OK takes two clicks

 
 
John
Guest
Posts: n/a
 
      12th May 2004

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!




 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      12th May 2004
* "John" <(E-Mail Removed)> scripsit:
> 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?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
John
Guest
Posts: n/a
 
      12th May 2004

I'm using .Net 1.1 on a Windows Server2003





>-----Original Message-----
>* "John" <(E-Mail Removed)> scripsit:
>> 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?
>
>--
>Herfried K. Wagner [MVP]
><URL:http://dotnet.mvps.org/>
>.
>

 
Reply With Quote
 
John
Guest
Posts: n/a
 
      12th May 2004

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
>"John" <(E-Mail Removed)> wrote in

message
>news:bfdc01c43831$0d98b0c0$(E-Mail Removed)...
>>
>> 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!
>>
>>
>>
>>

>
>
>.
>

 
Reply With Quote
 
AlexS
Guest
Posts: n/a
 
      12th May 2004
Hi, John,

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

HTH
Alex
"John" <(E-Mail Removed)> wrote in message
news:bfdc01c43831$0d98b0c0$(E-Mail Removed)...
>
> 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!
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slide advance - takes 2 clicks instead of 1 John @ Nice Multimedia Microsoft Powerpoint 4 5th Mar 2009 05:22 PM
It takes two clicks to shut down Excel Dean Meyer Microsoft Excel Programming 9 29th Dec 2006 10:00 PM
RE: It takes two clicks to shut down Excel =?Utf-8?B?RGVhbiBNZXllcg==?= Microsoft Excel Crashes 0 29th Dec 2006 08:49 PM
Takes multiple clicks to open Outlook =?Utf-8?B?Q2FybA==?= Windows XP Help 2 13th Jun 2005 12:39 AM
optionbutton takes two clicks to change value Will Gardner Microsoft Excel Programming 3 3rd Dec 2004 01:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:01 AM.