Connecting Tech Pros Worldwide Forums | Help | Site Map

Checklistbox with textbox

Newbie
 
Join Date: Apr 2009
Posts: 6
#1: Aug 25 '09
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's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,783
#2: Aug 25 '09

re: Checklistbox with textbox


Have you made an effort on your own? Do you have some code that is giving you trouble that you need help with?
Newbie
 
Join Date: Apr 2009
Posts: 6
#3: Aug 26 '09

re: Checklistbox with textbox


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".
tlhintoq's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,783
#4: Aug 26 '09

re: Checklistbox with textbox


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

Expand|Select|Wrap|Line Numbers
  1. textbox MyNewTextbox = new TextBox();
  2. MyNewTextbox.Location = new Point(chcklistbox.location.x + 100, chcklistbox.location.y);
  3. Form1.controls.add(MyNewTextbox);
  4.  
Reply