Results 1 to 2 of 2

Thread: control arrays 3

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    8

    control arrays 3

    i really tried the following code :

    Dim tbNew as New TextBox1
    tbNew.Text = "Copy of TextBox1"
    tbNew.Location = New System.Drawing.Point(12, 12)
    Me.Controls.Add(tbNew)

    but when i write dim tbnew as new ........ (i dont get textbox1 in the popup menu)
    so it isnt working. if there is anything specific in addition to the above code please say it. thanx anyway.

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    how about this:

    Dim tbNew As TextBox = TextBox1

    I think it does what you want
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

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