hazejean Posted July 31, 2003 Posted July 31, 2003 I have a situation where I need to insert titles between checkboxes. I am generating checkboxes automatically. example: Title one checkbox1 checkbox2 title two checkbox3 checkbox4 How do I insert titles between checkboxes? Quote
JABE Posted August 1, 2003 Posted August 1, 2003 How about dynamically creating Label controls as well to serve as your titles? Quote
hazejean Posted August 1, 2003 Author Posted August 1, 2003 Yes that is what I want to do. How? Quote
*Experts* Bucky Posted August 1, 2003 *Experts* Posted August 1, 2003 All you need to do is declare a new Label class in code, set its properties to make it look right, and then add it to the form's Controls collection. You'll need to do some math to correctly place the labels and checkboxes. ' Declare the new label Dim newLabel As New Label() ' Set its properties (these are just examples) With newLabel .Text = "Title one" .Font.Bold = True .Location = New Point(8, 8) .Size = New Size(80, 8) End With ' Add it to the form Me.Controls.Add(newLabel) Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
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.