Nevron Forum

Cancel Tab Select Event

https://www.nevron.com/Forum/Topic2849.aspx

By Gary Smith - Wednesday, December 23, 2009

Hi, I am doing a datacheck prior to departing a tab with the NTabControl. In the NTabControl_SelectedTabChanged event, how can I cancel the tab change if I need to so that the user remains on the tab they are currently located on?

Thanks...
Gary

 

By Angel Chorbadzhiev - Monday, January 4, 2010

Hello Gary,

In SelectedTabChanged event handler you cannot cancel the tab changing.

In the new version that is about to be released you will find a new event called SelectingTab which is cancelable and you will be able to cancel the tab changing using this event.

Regards,

By Gary Smith - Monday, January 4, 2010

Ok, thanks!