locked
Invalid Token error... RRS feed

  • Question

  • I'm using the code found on the MSDN page showing how to use the LibraryControl. I'm trying to do:

    #region DisableLastItem
    int idx = LibraryBar2.Items.Count - 1;
    if (idx >= 0)
    {
    LibraryBar2.SetIs ItemDataEnabled(LibraryBar2.Items[idx], false);
    }
    #endregion

    What I get is invalid token for "if" and for >= as well as invalid token errors for the ( and [

    The code is character for character from the samples provided by MS. Suggestions??

    Monday, May 10, 2010 7:30 PM

Answers