0

hi,

i have two form Form1 and Form2 that are inherited from FormParent. in FormParent i have a protected variable Modified which will be set to true whenever anything has been modified.

Form1 and Form2 are docked into tabpages. what i want to do is that when i close the tabpages, i want to get the Modified values of Form1 and Form2 to validate before allowing the tabpage to be removed.

how do i go about getting these values? i tried the following but it didn't get exposed:

((Form1)control).Modified
((FormParent)control).Modified

any idea?

thanks again in advance.

4
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by gp04lch
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.