0

I have and text box in and I want to clear the text box when the mouse click is happen , I am using PrimalForms to use powershell with GUI.

1 Answer 1

1

Put the code to clear the text box on the click event handler. For example, clicking button1:

$handler_button1_Click={
    $textbox1.Text=''
}

Here's how to add the click event handler directly to button1 (without using PrimalForms):

$button1.add_Click( {$textbox1.Text=''})
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.