Knowledge Base 
Removing NavigationPane button(s) at run time 
 Wednesday, August 10, 2022

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()