Answered Issue in Outlook AddIns olkcheckbox control

  • Friday, September 14, 2012 8:11 AM
     
     

    Hi,
    i'm working on Outlook AddIns & i have come up with following issue

    On CLICK of olkcheckbox, my CLICK event handler sees the value as FALSE still its show as Checked

    is there any reason for it ?
    And
    checkbox.get_value(2003) And olkcheckbox.Value(2010) are equal ? if yes then why it Showing different Value on click of checkbox (i.e olkcheckbox = False And checkbox.get_value = True)

    Pleas guide me on this

    Thanks

    Bhushan.

All Replies

  • Friday, September 14, 2012 3:00 PM
     
     
    What checkbox are you talking about, and where is this checkbox?
     
    Show the code you're using and tell us where that code is running (addin or form code).

    --
    Ken Slovak
    [MVP-Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
    "Bhushanb" <=?utf-8?B?Qmh1c2hhbmI=?=> wrote in message news:d3531241-ce47-4f0a-806b-41a1fbff31a4...

    Hi,
    i'm working on Outlook AddIns & i have come up with following issue

    On CLICK of olkcheckbox, my CLICK event handler sees the value as FALSE still its show as Checked

    is there any reason for it ?
    And
    checkbox.get_value(2003) And olkcheckbox.Value(2010) are equal ? if yes then why it Showing different Value on click of checkbox (i.e olkcheckbox = False And checkbox.get_value = True)

    Pleas guide me on this

    Thanks

    Bhushan.


    Ken Slovak MVP - Outlook
  • Monday, September 17, 2012 9:36 AM
     
     

    The code(Outlook AddIn)  is as follows

    if (!(bool)OlkCheckBox1.Value)
    {
     OlkCheckBox1.Value = True;
    }

    In Above code ON click of olkCheckBox1 it shows false value(Reverse of checkbox in WinForm)

    AND

    Printscreen of Form Region(.ofs) is as follows:

    FormRegion Development - PrintScreen


    • Edited by Bhushanb Monday, September 17, 2012 9:37 AM spell check
    •  
  • Monday, September 17, 2012 6:50 PM
     
     Answered
    I don't understand. An olkCheckbox has a Value of True if it's checked and False if unchecked. If already checked it will have a value of False when checked again, when the Click() event handler fires for that control.

    --
    Ken Slovak
    [MVP-Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
    "Bhushanb" <=?utf-8?B?Qmh1c2hhbmI=?=> wrote in message news:4798ac0d-d540-47f8-80e0-0bf6a34443c6...

    The code(Outlook AddIn)  is as follows

    if (!(bool)OlkCheckBox1.Value)
    {
     OlkCheckBox1.Value = True;
    }

    In Above code ON click of olkCheckBox1 it shows false value(Reverse of checkbox in WinForm)

    AND

    Printscreen of Form Region(.ofs) is as follows:

    FormRegion Development - PrintScreen



    Ken Slovak MVP - Outlook