Results 1 to 4 of 4

Thread: [RESOLVED] VB.net Custom Control Properties

  1. #1

    Thread Starter
    Member Ch1n's Avatar
    Join Date
    Apr 2005
    Location
    Pompey
    Posts
    42

    Resolved [RESOLVED] VB.net Custom Control Properties

    Hi,
    Bit new to creating server controls. One thing i'd like to know is how to make property with like a selection menu. For example, if you have a textbox it has a property called "Textmode" and the possible values are either Singleline, Multiline or password and cannot be overridden.

    How would i go about achieving something very similar to this in my server control?

    Thanks
    Last edited by Ch1n; Jun 22nd, 2009 at 10:36 AM.
    "He who dares, wins"

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: VB.net Custom Control Properties

    Create an enum and make the property of that enum type.

  3. #3

    Thread Starter
    Member Ch1n's Avatar
    Join Date
    Apr 2005
    Location
    Pompey
    Posts
    42

    Re: VB.net Custom Control Properties

    ah ha, spot on, that has done the trick thanks
    "He who dares, wins"

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: VB.net Custom Control Properties

    Hey,

    If your question has been answered, remember to mark your thread as resolved, there are links in my signature that will explain how to do this if you are unsure.

    Gary

Tags for this Thread

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