Results 1 to 3 of 3

Thread: Change size of textbox

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Posts
    95

    Change size of textbox

    I am new to .Net but I can't seem to change the size of a textbox at runtime.

    Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Me.TextBox1.Size.Width.Equals(6000)
    End Sub

    How do I do this?

    Thanks

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

    Re: Change size of textbox

    Originally posted by sthomas
    I am new to .Net but I can't seem to change the size of a textbox at runtime.

    Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Me.TextBox1.Size.Width.Equals(6000)
    End Sub

    How do I do this?

    Thanks
    equals checks to see if the size is equal to the value you pass to the function. do ....Width = 6000
    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!!

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Posts
    95
    Don't know why I struggle so much with .Net.

    Thanks

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