Setting a font style to strikeout

Discussion in 'Questions (Windows Mobile)' started by Ricky D, Nov 5, 2008.

  1. Ricky D

    Ricky D Well-Known Member Licensed User

    Hi people.

    I'd like to know how to set a textbox's font.style property to Strikeout and back to Regular.

    I've tried this

    Code:
    Sub btnL1_Click
       obj.New1(
    False)
       obj.FromControl(
    "txtL1")
       
    If Line1Inline=True Then
          obj.SetProperty(
    "Font.Style","Regular")
          Line1Inline=
    True
       
    Else
          obj.SetProperty(
    "Font.Style","Strikeout")
          Line1Inline=
    False
       
    End If
    End Sub
    but I get this error

    An error occurred in sub airport.btnL1_Click.
    Line number: 387

    Error description:
    Object reference not set to an instance of an object.

    Line 387 is the line with the Strikeout in it

    regards, Ricky
     
  2. klaus

    klaus Expert Licensed User

    I don't know how to do it with the Door library.

    But you can use the FormLib library where you have the SetFontStyle method.
    FormLib

    Best regards.
     
  3. agraham

    agraham Expert Licensed User

    Try FormLib.SetFontStyle from the FormLib library.
     
  4. Ricky D

    Ricky D Well-Known Member Licensed User

    thanks guys

    i should have known this. my bad.

    regards, Ricky
     
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