Textboxes creation

gomindi

Freshman
Joined
Aug 28, 2002
Messages
25
Location
UT
I am reading file from a text file and I want my application to create textboxes if information exists in the file. So what I want it to do is create a textbox if information exists. I just need the code to do that, can anyone help me out with this?

thanks! Mindi
 
Visual Basic:
Dim tbox As New TextBox()

With tbox
    .Size = New Size(100, 20)
    .Location = New Point(15, 15)
    .Text = "Hey!"
End With

Me.Controls.Add(tbox)
That will add a new textbox to the form.
 
Hi, I am sorry to bother you again, but I am stumped. Here's my problem. I have a "Panel" on form1. This panel doesn't appear until after they press a button. After they press a button this panel appears asking for information. then they press an "add" button. the information is written to a text file. And I want to have the information show up on form1. (in a nice table layout) but it also needs to show a textbox that allows them to change quantity. and then recalculate. What I want to do is have the data read into textboxes that are created on the fly if there is information in the text file. Confusing huh?! Any help would be so greatly appreciated.
Thanks! Mindi
 
For starters, you'd probably want to first get the number of textboxes that you'll need by the number of entries in the file.
Once you get this number, you can check the number of existing text boxes and then add the remaining number of text boxes.
What part do you need help on?
 
Back
Top