none
Hiding text in vb RRS feed

  • Question

  • I am trying to hide the text in a label in VB 2010 Express. I have tried the Me.label.visible = false, but I want the user to be able to see the label (which is a different color from the background) and not the text. In the past, I have used Me.lablel.text.hide() but that isn't a valid statement for some reason. Me.label.text.visible = false isn't valid either. Is there any way to make only the text in a label not visible?
    Tuesday, April 9, 2013 1:30 PM

Answers

  • This should work

            Label1.ForeColor = Label1.BackColor


    "Those who use Application.DoEvents() have no idea what it does and those who know what it does never use it." JohnWein

    Tuesday, April 9, 2013 1:33 PM

All replies

  • This should work

            Label1.ForeColor = Label1.BackColor


    "Those who use Application.DoEvents() have no idea what it does and those who know what it does never use it." JohnWein

    Tuesday, April 9, 2013 1:33 PM
  • Thank you! I never thought of changing the color.
    Wednesday, April 10, 2013 12:39 PM