P
parez
Is there anyway i can find out if a control is an input control
(textbox,radiobutton,checkbox,dropdown etc)
and not a panel,group box etc.
I am trying to implement "You have unsaved data on the form.Would you
like to save it?" functionality.
I created a SaveState method in my base form which adds all textboxes
to a dictionary with their values.
This method is called when the use saves the form or loads data.
In the FormClosing event, I check the dictionary for changes in the
text boxes and display a modal window if needed.
This works great.Now I want to extend this functionality for all
controls(input controls).
Should i hardcode all the controls that i am using in my application
and check the appropritate propery(.Text, .Checked) or is there any
other way?
TIA
(textbox,radiobutton,checkbox,dropdown etc)
and not a panel,group box etc.
I am trying to implement "You have unsaved data on the form.Would you
like to save it?" functionality.
I created a SaveState method in my base form which adds all textboxes
to a dictionary with their values.
This method is called when the use saves the form or loads data.
In the FormClosing event, I check the dictionary for changes in the
text boxes and display a modal window if needed.
This works great.Now I want to extend this functionality for all
controls(input controls).
Should i hardcode all the controls that i am using in my application
and check the appropritate propery(.Text, .Checked) or is there any
other way?
TIA