Results 1 to 2 of 2

Thread: [RESOLVED] Adding a textbox with coding?

  1. #1

    Thread Starter
    Member Shadow45o's Avatar
    Join Date
    Sep 2008
    Posts
    51

    Resolved [RESOLVED] Adding a textbox with coding?

    Ok, I don't even know if the is possible, but what I want to do is have a button that when pressed will add a new text box below each other each time it is pressed. So meaning, ther4e is text in one text box, then a button is pressed, a new textbox will appear below it and you can add text to that, and so on...

    Please tell me if this is possible or not, and if it is, please help me out. Thanks for any help.

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,413

    Re: Adding a textbox with coding?

    try this:

    vb Code:
    1. static tbTop as integer = 50 'for example
    2.  
    3. dim tb as new textbox
    4. tb.left = 50 'for example
    5. tb.top = tbTop
    6. tbTop += tb.height
    7. me.controls.add(tb)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width