Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • *Experts*
Posted
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.

Posted

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

  • Leaders
Posted

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?

Iceplug, USN

One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...