Checklistbox with textbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • khalidjan9
    New Member
    • Apr 2009
    • 8

    Checklistbox with textbox

    I have data in an arraylist and i want to add data to checklist box on runtime and i also want to display a textbox besides it so that i get the comments

    example :
    checklistbox "text" textbox
    checklistbox "text" textbox
    checklistbox "text" textbox
    checklistbox "text" textbox
    checklistbox "text" textbox

    can any 1 pleeez help... tks in adv.. :)
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Have you made an effort on your own? Do you have some code that is giving you trouble that you need help with?

    Comment

    • khalidjan9
      New Member
      • Apr 2009
      • 8

      #3
      i mean to ask "on runtime i want to add a text box besides an item of checklistbox dynamically so that i get comments of each item checked from checklistbox from the user".

      Comment

      • tlhintoq
        Recognized Expert Specialist
        • Mar 2008
        • 3532

        #4
        You make a new text box.
        You give it a location relative to the control you want it next to.
        You add it to the controls of form you want it on

        Code:
        textbox MyNewTextbox = new TextBox();
        MyNewTextbox.Location = new Point(chcklistbox.location.x + 100, chcklistbox.location.y);
        Form1.controls.add(MyNewTextbox);

        Comment

        Working...