Knowledge Base 
Removing NavigationPane button(s) at run time 
 Saturday, November 9, 2024

Removing NavigationPane button(s) at run time

You can remove NavigationPane button(s) at run time by using the RemoveButton or RemoveAllButtons methods of the NavigationPane object.

This sample code illustrates how to remove 1st button at run time:

ThisForm.NavigationPane.RemoveButton( ThisForm.NavigationPane.Buttons[1])
This sample code illustrates how to remove specific button at run time:

ThisForm.NavigationPane.RemoveButton( ThisForm.NavigationPane.btnMail)
This sample code illustrates how to remove all buttons at run time:

ThisForm.NavigationPane.RemoveAllButtons()