Hi I am cycling through text boxes on a form with
For Each HoldText As Control In Me.Panel1.Controls
If TypeOf (HoldText) Is TextBox Then
If HoldText.Modified Then
PatientHasChanges = True
I get an error that 'Modified' is not a member of 'System.Windows.Forms.Control'. This is understandable.
If I try this:
For Each HoldText As TextBox In Me.Panel1.Controls
If HoldText.Modified then
PatientHasChanges = True
It will work unless there is a non-textbox control on the Panel such as a DataGridView.
Does anyone know of a nice way to be able to just check if any textboxes on a penal were modified?
Thanks
For Each HoldText As Control In Me.Panel1.Controls
If TypeOf (HoldText) Is TextBox Then
If HoldText.Modified Then
PatientHasChanges = True
I get an error that 'Modified' is not a member of 'System.Windows.Forms.Control'. This is understandable.
If I try this:
For Each HoldText As TextBox In Me.Panel1.Controls
If HoldText.Modified then
PatientHasChanges = True
It will work unless there is a non-textbox control on the Panel such as a DataGridView.
Does anyone know of a nice way to be able to just check if any textboxes on a penal were modified?
Thanks