Extend Options Dialog - 2
§ TabbedDialogEventArgs
§ TabbedDialogAction
§ TabbedDialogExtension
§
§
§
The function that is called when the OPTIONS command is run by the user has two arguments, in this example this function is called TabHandler. One of the arguments is an Object and the other is a TabbedDialogEventArgs. The AddTab function of the TabbedDialogEventArgs is used to add the new tab. You can see that the AddTab function takes a string for the first argument. This string will be the text on the Tab in the Options dialog. The second argument is a TabbedDialogExtension. Notice that the constructor for the TabbedDialogExtension takes  the new usercontrol and a TabbedDialogAction. The constructor of the TabbedDialogAction takes a function of the UserControl which in this case is named OnOk. This function will be called when the user clicks ok on the OPTIONS dialog. In this function named OnOk you would get the values that the user put on the form and set your member variables with those values.