Validating event

  • Thread starter Thread starter Fábio Prado
  • Start date Start date
F

Fábio Prado

I have one problem with events in a child form. I need raise a event to
validate the textbox controls of child form when i click in one existent
treeview menu in the Mdi parent and don´t allow that click event of the menu
treeview raise when the event of texbox don´t be validated.

Anybody have a solution?

Thanks!
 
Fabio,
I have one problem with events in a child form. I need raise a event to
validate the textbox controls of child form when i click in one existent
treeview menu in the Mdi parent and don´t allow that click event of the menu
treeview raise when the event of texbox don´t be validated.


Did you raise an event in the parent at the click event from the treeview
and then tried too catch that event in the child form?
If I understand you well, I gues it is can be a chain like this in pseudo
code
\\\\
on click in treeview: disable menu, raise event for parent
on treeview event in parent: validate textbox, set sw in module, raise event
ready for treeview child
on raised validated event in treeview child: enable menu
////
Did you mean something like this?
Cor
 
Fabio,

Are you saying that you have a treeview in the parent form and when you
click on it you want to validate the data contained in a child forms
textbox?

If this is what you are saying you might try making the value of the textbox
available to the parent as a public property. That way you can use its
value in any way you choose.

Regards
 
Back
Top