Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Customizing controls

Customizing controls

Scheduled Pinned Locked Moved C#
question
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    madhusri
    wrote on last edited by
    #1

    Hi all, I would like to customize a text box so that it holds a collection. How can this be done? (i.e.) I want to override the text box similar to a listbox, but only one item should be visible at a time and there should not be any scroll bar. Thanks in advance. Thanks and Regards Madhu

    A 1 Reply Last reply
    0
    • M madhusri

      Hi all, I would like to customize a text box so that it holds a collection. How can this be done? (i.e.) I want to override the text box similar to a listbox, but only one item should be visible at a time and there should not be any scroll bar. Thanks in advance. Thanks and Regards Madhu

      A Offline
      A Offline
      AB7771
      wrote on last edited by
      #2

      you can derive a class from the TextBox class and then define the properties that u want for the derived textbox. you can define an object of the Arraylist to contain the collection of the textbox. Hope u get it Regards, Pramod

      M 1 Reply Last reply
      0
      • A AB7771

        you can derive a class from the TextBox class and then define the properties that u want for the derived textbox. you can define an object of the Arraylist to contain the collection of the textbox. Hope u get it Regards, Pramod

        M Offline
        M Offline
        madhusri
        wrote on last edited by
        #3

        Thanks Pramod But my problem was actually i need it the way as it is in list box. i have provided an Items property and when i click on the ellipsis button i want it to display the string collection editor. But for me it returns an error telling no component. How can this be resolved Thanks in advance again Thanks and Regards Madhu

        A 1 Reply Last reply
        0
        • M madhusri

          Thanks Pramod But my problem was actually i need it the way as it is in list box. i have provided an Items property and when i click on the ellipsis button i want it to display the string collection editor. But for me it returns an error telling no component. How can this be resolved Thanks in advance again Thanks and Regards Madhu

          A Offline
          A Offline
          AB7771
          wrote on last edited by
          #4

          i don't know hoe to display the ellipsis button u can surely show the String collection editor, for this u can create a form with the FormBorderStyle = none and put a Richtextbox on that form and then set the items property by reading each line of the Richtextbox. Regards, Pramod

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups