Click or drag to resize

Menu.PreInit Method

X#
Implement customized initialization code for the server.

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD PreInit() AS USUAL
Request Example View Source

Return Value

Type: Usual
Remarks
This method is used to customize the initialization code for a server. The customized initialization code will not be overridden by the generated default initialization code. A call to PreInit() is automatically generated at the beginning of the Init() method. The default implementation of PostInit() in this class is empty.
Tip Tip
In .Net it is normally not allowed or recommended to run code in a class before the parent constructor is called. The generated code in the Window editor does this (it calls PreInit before the SUPER() call). We advise you to be very careful not to touch protected instance variables inherited from parent classes, since these may not be initialized and/or values that you assign to them may be overwritten in the constructor of the parent class.
See Also