Link to home
Start Free TrialLog in
Avatar of Camillia
CamilliaFlag for United States of America

asked on

winform: checking for text changed

on my form, i have a listview and a textbox above it. I have Apply, OK, Cancel buttons.

Apply button is disabled.

When user double clicks a listview item, I put that item in the textbox. Now, if user changes that textbox text, I have to enable the Apply.

So, I used "TextChanged" event. I double click a listview item, puts it in the textbox and the Apply button is enabled. BUT, I havent changed the text yet. I know why the Apply button is enabled...because the previous textbox value was blank and now it's something new.

*** But I want the Apply button to change ONLY if that text is actually changed by the user...how can I do this??
SOLUTION
Avatar of gauravjoshi
gauravjoshi
Flag of United States of America 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
ASKER CERTIFIED SOLUTION
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
SOLUTION
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
Avatar of Camillia

ASKER

let me read and will post back. Thanks.
SOLUTION
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
Jim's solution worked.