Camillia
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??
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Jim's solution worked.
ASKER