PC Review


Reply
Thread Tools Rate Thread

Click() event fires when check box Value set

 
 
Bill Le May
Guest
Posts: n/a
 
      11th Feb 2005
If I programmatically set an unbound checkbox's Value to True during
Item_Open( ), it triggers the Click event for the check box and runs the
code, which I don't want to do until the user actually clicks on it.

I am getting around it by setting a flag during Item_Open and clearing it
when it exits. The checkbox_Click code checks to see if an Open is in
progress and exits if True.

Is this normal behavior, and is this a valid solution? It is working so
far, but it seems odd.

Thanks,

Bill Le May


 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      11th Feb 2005
This is normal. Setting the value is the same as clicking the control.
You've found the correct solution.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Bill Le May" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> If I programmatically set an unbound checkbox's Value to True during
> Item_Open( ), it triggers the Click event for the check box and runs the
> code, which I don't want to do until the user actually clicks on it.
>
> I am getting around it by setting a flag during Item_Open and clearing it
> when it exits. The checkbox_Click code checks to see if an Open is in
> progress and exits if True.
>
> Is this normal behavior, and is this a valid solution? It is working so
> far, but it seems odd.
>
> Thanks,
>
> Bill Le May
>



 
Reply With Quote
 
Bill Le May
Guest
Posts: n/a
 
      11th Feb 2005
"Sue Mosher [MVP-Outlook]" <(E-Mail Removed)> wrote...

> This is normal. Setting the value is the same as clicking the control.
> You've found the correct solution.


OK, great, and thanks.

Since we're talking events, do you have any insight on the Item_Read( )
event not always firing due to caching?

I posted a question here on 1/26/2005 but didn't see any reply. I would like
to utilize it for validation of input when in-cell editing takes place (no
Item_Open event), but it doesn't seem reliable.

In the meantime, I turned off the "Use Cached Exchange Mode" setting for my
email account. Item_Read now appears to fire even during in-cell editing. Do
you know of any downside for disabling Cached Exchange Mode? I looked here:

http://office.microsoft.com/en-us/as...402591033.aspx

and didn't see anything that would cause me concern.

Thanks again for your help, Sue.

Bill Le May



 
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
When user press F5 after a button click event, the click event fires again! Max2006 Microsoft ASP .NET 2 19th Sep 2007 06:37 AM
Button Click Event Fires When Disabled =?Utf-8?B?cm1hY2lhcw==?= Microsoft Dot NET Framework Forms 6 28th Jul 2006 03:25 PM
Asp.Net click event fires on 2000 but not 2003 =?Utf-8?B?Um9iIFBlbm5lcg==?= Microsoft ASP .NET 2 18th Oct 2004 08:55 PM
Re: Button Click event fires only once Lee Microsoft ASP .NET 0 12th Feb 2004 06:28 PM
Button Click Event Fires Erratically? Big_Stu Microsoft ASP .NET 1 19th Nov 2003 09:12 PM


Features
 

Advertising
 

Newsgroups
 


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