E
Elmo Watson
I need to add some textboxes to a form, programmatically
Dim ctl As New System.Windows.Forms.TextBox
ctl.Top = iTop
Me.Controls.Add(ctl)
iTop = iTop + 25
I need them to anchor on the left and the right - but I can't seem to find
how to do it
When I try to programmatically anchor them, I only get one choice, if I do
it twice:
ctl.Anchor = AnchorStyles.Left
ctl.Anchor = AnchorStyles.right
Only the second one 'takes'
How can I programmatically anchor them so that they'll stretch all the way
across the form, from left to right?
Dim ctl As New System.Windows.Forms.TextBox
ctl.Top = iTop
Me.Controls.Add(ctl)
iTop = iTop + 25
I need them to anchor on the left and the right - but I can't seem to find
how to do it
When I try to programmatically anchor them, I only get one choice, if I do
it twice:
ctl.Anchor = AnchorStyles.Left
ctl.Anchor = AnchorStyles.right
Only the second one 'takes'
How can I programmatically anchor them so that they'll stretch all the way
across the form, from left to right?