donnacha Posted June 17, 2003 Posted June 17, 2003 Hi folks, I am trying to use a checklist box where I fill the data from a database table. The text is too long to fit in one line and I can not make the control any wider. Does anybody know how to allow multi-line text to be associated with each checkbox item. :confused: Quote Hamlet
Leaders dynamic_sysop Posted June 17, 2003 Leaders Posted June 17, 2003 how long is the text? just because you cant see it all it could be there still. i just added a line of text 182 chars long to 1 , like this : Private Sub CheckedListBox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles CheckedListBox1.MouseDown MsgBox(CheckedListBox1.SelectedItem & Chr(10) & "length is :" & Len(CheckedListBox1.SelectedItem)) '/// check if the string is complete. End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim str As String str = "abcdefghijklmnopqrstuvwxyz" str = str + str + str + str + str + str + str MsgBox(str.Length) CheckedListBox1.Items.Add(str)'/// add the string to the checkedlistbox End Sub Quote
donnacha Posted June 18, 2003 Author Posted June 18, 2003 Thanks, but getting the text into the checklist is not the problem, taht is done directly throught the datasourse field. I know the full thext is there but the user needs to be able to see the full text string. Thus I need something like a line/text wrap functionality to allow the whole string to be visible. Any Ideas.. Quote Hamlet
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.