
Create Multiline Text Box at Run Time
I tried using SetWindowLong to change the TextBox's style to
multiline, but doesn't work.
Another solution might be to encapsulate a single-line textbox
in a separate ActiveX control and a multi-textbox in another
ActiveX control. You could also create a single ActiveX
control which contains both, a single-line and a multi-line
TextBox, and show the one or the other depending on the
multiline property.
Hope this helps
Alexander Kienzle
Quote:
> The following statement creates a Text Box at run time.
> Set TextBoxData = Me.Controls.Add("vb.TextBox", "TextBoxData", Me)
> The created text box is Multiline = False, and the Multiline property
> is ReadOnly at Run Time.
> Is there any way to modify the above statement to create the text box
> as Multiline = True?
> Any other way?
> Thanks,
> Fred Holmes