Door Library Null Reference Exception

Discussion in 'Bug Reports' started by sahoopes, Jul 15, 2008.

  1. sahoopes

    sahoopes Member Licensed User

    UseMnemonic property of Labels is giving me a problem. I am displaying one line of text from a database. It could contain a "&" and I do not want that replaced with a "_".

    I first tried the following:

    Label1.text=rStrReplace(text,"&","&&")

    That was fine but I thought it would be better to just use the Door Library to set UseMnemonic to false:

    Door.FromControl("Label1")
    msgbox(Door.GetProperty("UseMnemonic")
    Door.SetProperty("UseMnemonic",false)

    Using either of the last 2 lines will cause a NullReferenceException error.

    I'm using my previous code to get around this so just reporting my error.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Label.UseMnemonic is not supported by .Net Compact Framework.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice