tabcontrol

  • Thread starter Thread starter yoinks
  • Start date Start date
Y

yoinks

Is there a way to vaildate a textbox on a tab and display a message to
either leave existing tab of go to the new one. I kind of have this
working with the indexchanged event but it is still buggy.
 
Is there a way to vaildate a textbox on a tab and display a message to
either leave existing tab of go to the new one. I kind of have this
working with the indexchanged event but it is still buggy.
Is there a way to vaildate a textbox

Use the Validating event and set the appropriate CauseValidation
properties on any controls that should fire the textbox's event when
the (attempt) to get the focus.
display a message to either leave existing tab of go to the new one

I have no idea what this sentence is supposed to say. Could you please
clarify?

Thanks,

Seth Rowe
 
Use the Validating event and set the appropriate CauseValidation
properties on any controls that should fire the textbox's event when
the (attempt) to get the focus.


I have no idea what this sentence is supposed to say. Could you please
clarify?

Thanks,

Seth Rowe

ok, I have multiple tabs with text boxes on some of the tabs for
input, if they have
data on the form and they try to change the tab I want to display a
message box
stating that you have information on the form and are you sure you
want to change
the tab. I have it kind of working when the selectedindex changes but
every time you
display or change anything it goes through the gotfocus and
selectedindex change
event.
 
Back
Top