canSelChange
Topic group Related topics Example
Event fired before another NoteBook tab is selected; return value determines if the new tab is selected.
Parameters
<nNewSel expN>
The number of the tab about to be selected.
Property of
NoteBook
Description
Use canSelChange to prevent the user from selecting another NoteBook tab until certain conditions are met. The parameter passed by the event, nNewSel, is an integer value representing the number of the NoteBook tab to be selected. The tabs are numbered (beginning with 1) according to the order of the array elements in the NoteBook’s dataSource property.
Because canSelChange fires while still on the current NoteBook tab, you may also use it to perform some action just before you allow the new tab to be selected. In this case, the canSelChange event handler would always return true to allow selection of the new tab.