gomindi Posted January 2, 2003 Posted January 2, 2003 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 Quote
*Experts* Volte Posted January 2, 2003 *Experts* Posted January 2, 2003 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. Quote
gomindi Posted January 2, 2003 Author Posted January 2, 2003 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 Quote
Leaders Iceplug Posted January 3, 2003 Leaders Posted January 3, 2003 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? Quote Iceplug, USN One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(
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.