Results 1 to 4 of 4

Thread: [RESOLVED] Questions about textbox and combobox

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2008
    Posts
    61

    Resolved [RESOLVED] Questions about textbox and combobox

    Hi guys, I have a few questions about both of these controls

    1. Is there any way to mask the values being entered into a textbox? I want to use it as a password field.

    2. Is there any way to restrict the valid entries in a combobox to the drop down list? I want users to be able to select from the values I have defined in the combobox but I don't want them to be able to enter their own values

  2. #2
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: Questions about textbox and combobox

    1. Change the UseSystemPassChar property to True for the textbox in question
    2. Change the DropDownStyle property to DropDownList on your combobox

    (sorry if the property names arent 100% correct but you will be able to see which ones I mean when you look through the properties in the designer)
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2008
    Posts
    61

    Thumbs up Re: Questions about textbox and combobox

    muchas gracias mate

  4. #4
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: Questions about textbox and combobox

    no problem, dont forget to mark the thread as resolved (use the Thread Tools menu at the top of the page)
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width