how to load text box runtime

  • Thread starter Thread starter harish
  • Start date Start date
Dim txtBox as new textBox()
txtBox.location = new point(8, 30)
txtBox.size = ...
txtBox.text = ...

Form1.AddControls(txtBOX)

Hope it helps.
 
Hello,

Wai Kong said:
Dim txtBox as new textBox()
txtBox.location = new point(8, 30)
txtBox.size = ...
txtBox.text = ...

Form1.AddControls(txtBOX)

Shouldn't the last line read something like that:

\\\
Me.Controls.Add(txtBox)
///

HTH,
Herfried K. Wagner
 
this code is not working with Visual Basic.

Dim txtBox as new textBox()

I am using Visual Basic 6.0
 
Hello,

harish said:
I am using Visual Basic 6.0

This is a VB .NET ng. Please turn to the VB6 ngs:

news://news.microsoft.com/microsoft.public.vb.controls

HTH,
Herfried K. Wagner
 
Back
Top