Link to home
Start Free TrialLog in
Avatar of milkwood
milkwoodFlag for Australia

asked on

Check contents of VB form for changes

I have a VB2010 form that has a few text boxes, a couple of combo boxes, a TrueDBGrid and some datetimepickers.

I am using a dataset with several tables to databind the above. All works fine. But, very importantly I need to check if the user changes any of the data so I can increase a revision number. If they just go and look then no revision increases.

I have tried textbox_leave and textbox modified event to set a boolean flag which seems to work but the datetimepicker or the combo boxes, truegrid don't have this event.

I struggled with using the dataset Haschanged and Getchanges but I cannot get these to work


Any ideas?
Avatar of Deepak Lakkad
Deepak Lakkad
Flag of India image

Hi,

There is SelectedValueChanged event for ComboBox and ValueChanged Event for DateTimePicke. Which you can use to set your boolean flag value.

I haven't use TrueGrid, but as per my knowledge, there should be some event related with Cell Value changed.

I thinks this will help you ...

Deepak Lakkad
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland 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