Link to home
Start Free TrialLog in
Avatar of MrTV
MrTVFlag for Thailand

asked on

c# how can i make textbox invisible

How can i make text box invisible after click bottom then textbox  visible ant wait for in put data
Avatar of kaufmed
kaufmed
Flag of United States of America image

after click bottom
Bottom of what?
Can you explain in more detail what you want to achieve?

If you want to make a textbox visible after an event, just set the initial properties of the textbox to visible = false and then on the occurrence of that event change the visible property to true.

For example, to make the text box visible after clicking a button (on a form with a button and text box):

// Set the textbox to be invisible when the form loads.
private void HostCont_Load(object sender, EventArgs e)
        {
          textBox1.Visible = false;  
        }

// Set the textbox to visible when a button is clicked.
private void button1_Click(object sender, EventArgs e)
        {
            textBox1.Visible = true;
        }

Hope this helps, Bernie.
Avatar of MrTV

ASKER

when click butom

then it run the code and textbox appear wait for in put data after it get data textbox is visible and run the remaining code
ASKER CERTIFIED SOLUTION
Avatar of berniefitz
berniefitz
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,
where you click bottom or is there any button of the form?
if the answer is bottom then is it bottom of form


Dani