Field that cannot be selected

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    Field that cannot be selected

    I have a field on my form of which I'm setting the value programmaticall y. I
    don't want the users to be able to setfocus to the field. I've set the
    tabstop property to false. However, the user is still able to click in the
    field and then it gets focus. How can I prevent the user from selecting the
    field?
    thanks,
    john


  • RoyVidar

    #2
    Re: Field that cannot be selected

    "John" <jo@hn.comwro te in message
    <f5iqu2$1le9$1@ textnews.wanado o.nl>:
    I have a field on my form of which I'm setting the value
    programmaticall y. I don't want the users to be able to setfocus to
    the field. I've set the tabstop property to false. However, the user
    is still able to click in the field and then it gets focus. How can
    I prevent the user from selecting the field?
    thanks,
    john
    To make it visible, that it isn't selectable, set it's enabled
    property to false. To make it appear "ordinary", but not selectable,
    also play with it's locked property (True).

    --
    Roy-Vidar


    Comment

    • John

      #3
      Re: Field that cannot be selected

      I thought the enabled property would block the field from getting updated by
      vb code, but it doesn't. Now it works. Thanks.
      john

      "RoyVidar" <roy_vidarNOSPA M@yahoo.noschre ef in bericht
      news:mn.badd7d7 6de66469c.59509 @yahoo.no...
      "John" <jo@hn.comwro te in message
      <f5iqu2$1le9$1@ textnews.wanado o.nl>:
      >I have a field on my form of which I'm setting the value
      >programmatical ly. I don't want the users to be able to setfocus to
      >the field. I've set the tabstop property to false. However, the user
      >is still able to click in the field and then it gets focus. How can
      >I prevent the user from selecting the field?
      >thanks,
      >john
      >
      To make it visible, that it isn't selectable, set it's enabled
      property to false. To make it appear "ordinary", but not selectable,
      also play with it's locked property (True).
      >
      --
      Roy-Vidar
      >
      >

      Comment

      Working...