Function to disable option

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

H

I want to thank you in advance for a wonderful source of information

I have developed a new contact form and have a list box with 6 check boxes. The initial value is set to the first 5 check boxes but as soon as the 6th one is clicked, I want to disable the other 5 check boxes. Can somebody help me with this. Waiting for your response. Thank you again

Indu
 
The procedure depends on whether the check box that you want to trigger the
change is bound to an Outlook property. See
http://www.outlookcode.com/d/propsyntax.htm

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Indu Sehgal said:
Hi

I want to thank you in advance for a wonderful source of information.

I have developed a new contact form and have a list box with 6 check
boxes. The initial value is set to the first 5 check boxes but as soon as
the 6th one is clicked, I want to disable the other 5 check boxes. Can
somebody help me with this. Waiting for your response. Thank you again.
 
Hi Sue
Thank you for your reply but I didn’t quite understand your answer. Pardon my knowledge with the outlook but what I am trying to do is that I have a list box which contains 6 values:Mail;Email,Fax,Sales Rep;Telephone;None. The initial values are set to Mail;Email;Sales Rep;Telephone. I want to disable these values when a user clicks on the 6th value (None). Can this be done without writing any codes…since I am not good in writing codes. I am trying to go through your book "Microsoft Outlook Programming" but I don't fine any info on this. Please help

Thanks.
 
Didn't you say these were checkboxes earlier? Do you mean, then, that this
is a multi-select listbox? If so, you cannot automatically deselect a value
when a different value is selected.

Also note: The newsgroup interface you are using apparently does not quote
earlier messages in the thread, making your latest message so short on
detail that you risk not getting the answer you're looking for. Please take
the time to quote the original message.
-
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Indu Sehgal said:
Hi Sue;
Thank you for your reply but I didn't quite understand your answer.
Pardon my knowledge with the outlook but what I am trying to do is that I
have a list box which contains 6 values:Mail;Email,Fax,Sales
Rep;Telephone;None. The initial values are set to Mail;Email;Sales
Rep;Telephone. I want to disable these values when a user clicks on the 6th
value (None). Can this be done without writing any codes.since I am not
good in writing codes. I am trying to go through your book "Microsoft
Outlook Programming" but I don't fine any info on this. Please help!
 
Hi Su

Thank you for your response, Yes, sorry it's a list box which has 6 choices and first five are default and when 6th selected the other 5 gets deselected automatically. Is there code for this procedure. Please reply asap as I have to present this with yes or no in a meeting

Thanks

Indu
 
But is it a multiselect list box or single select? Is it bound to an Outlook
property? The newsgroup interface you are using apparently does not quote
earlier messages in the thread, making your latest message so short on
detail that you risk not getting the answer you're looking for. Please take
the time to quote the original message.


--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Indu Sehgal said:
Hi Sue

Thank you for your response, Yes, sorry it's a list box which has 6
choices and first five are default and when 6th selected the other 5 gets
deselected automatically. Is there code for this procedure. Please reply
asap as I have to present this with yes or no in a meeting.
 
Hi Sue

I don't know why the original message is not appearing, I am trying to reply to the message, and thank you very much for your response and patience. Yes, this is a multiselect list box, I really don't understand by bound to an Outlook property. It's one of the user defined field where there are 6 items in the list (Mail, Email, Fax, Sales Rep, Telephone and Never). The first 5 items are set to the initial values as soon as the form loads what I want to be able to do is to disable all 5 items as soon as the user clicks on the 6th item(Never). Is there a formula to validatie this? Thanks again

Indu
 
"Bound" means that the data that the user enters with the control is
actually stored in an Outlook property. If a control is bound, you'll see
the name of the property on the Value page of the control's Properties
dialog.

What you want to do isn't quite possible. Here's why: When a user enters
data into a control bound to a custom property, Outlook fires a
CustomPropertyChange event BUT ONLY when the user moves the focus from that
control to another control. No event fires when the user simply clicks
"Never." So, you can have the CustomPropertyChange event deselect the other
choices after the user leaves the list box, but you can't make it happen as
a direct result of just clicking Never.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Indu Sehgal said:
Hi Sue;

I don't know why the original message is not appearing, I am trying to
reply to the message, and thank you very much for your response and
patience. Yes, this is a multiselect list box, I really don't understand by
bound to an Outlook property. It's one of the user defined field where
there are 6 items in the list (Mail, Email, Fax, Sales Rep, Telephone and
Never). The first 5 items are set to the initial values as soon as the form
loads what I want to be able to do is to disable all 5 items as soon as the
user clicks on the 6th item(Never). Is there a formula to validatie this?
Thanks again.
 
Back
Top