Results 1 to 5 of 5

Thread: text boxes

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2002
    Posts
    21

    text boxes

    I need to make a text box not visible

    txtBox.visible= false
    doeesnt seem to be working what make s it dissapear

    txtBox is my var name

  2. #2
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    txtBox should be your control name not variable name

    unless you are create controls using Controls.Add
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  3. #3
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    Text boxes are not variables.

    Click on the box on the form and check the name, by default, they are called something like Text1

    If it is, the following would make it not visible:

    Text1.Visible = False
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

  4. #4
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    This works:
    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Form_Load()
    4.    Text1.Visible = False
    5. End Sub

    Is txtBox a TextBox Object, or just a Variable??

  5. #5

    Thread Starter
    Junior Member
    Join Date
    May 2002
    Posts
    21
    thanks
    it was object name sorry
    the form load did the trick

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