MrTV
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
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.
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.
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
where you click bottom or is there any button of the form?
if the answer is bottom then is it bottom of form
Dani