Radiobutton or Checkedlistbox?

  • Thread starter Thread starter yang
  • Start date Start date
Y

yang

I'm doing a user-survey like application in winforms. The
questionaires are user-defined and stored in database. I can't know
how many question or answers are there until runtime. The answers may
contain multiple lines of text and may be very long.
The problem is that I can't find a good solution to display the
answers. If I use checkedlistbox, it cannot handle multiple lines of
text. And if I use radiobuttons, how can I link them with my
datasource and adjust the size correctly?
Any ideas will be appreciated.
 
* (e-mail address removed) (yang) scripsit:
I'm doing a user-survey like application in winforms. The
questionaires are user-defined and stored in database. I can't know
how many question or answers are there until runtime. The answers may
contain multiple lines of text and may be very long.
The problem is that I can't find a good solution to display the
answers. If I use checkedlistbox, it cannot handle multiple lines of
text. And if I use radiobuttons, how can I link them with my
datasource and adjust the size correctly?

I would not use a CheckedListBox. CheckBoxes or OptionButtons are more
user-friendly, I think. You can use 'Grapics.MeasureString' to get the
size of the text and place/size the control appropriately.
 
Back
Top