none
How to hide TextBox with CheckBox ? RRS feed

  • Question

  • Hello, frinds.

    First - sorry, but I can't find forum for web sites on Visual Basic. Please move the theme on right place.

    I work with Visual Studio 2013 Pro and I want to make with Visual Basic web site /File -- New -- Web site/ with one CheckBox and one TextBox - when I check the checkbox to hide TextBox.

    I know the right code, but for Windows Forms:

    Handles CheckBox1.CheckedChanged, TextBox1.TextChanged
            If (CheckBox1.Checked = True) Then
                TextBox1.Visible = False
            End If
            If (CheckBox1.Checked = False) Then
                TextBox1.Visible = True
            End If
        End Sub

    But this code don't work for Web pages.

    Please help me with right code on Visual Basic for Web page to hide TextBox with CheckBox.

    Best regards

    Veso Dimov

    Sunday, September 29, 2019 11:54 AM

Answers

All replies