This event is called once before OnInitialize when a new form is created with OpenViewForm or OpenDialog. Use OnInitialize for normal initialization processing. Use the OnInitializeBefore event when you want to change the form width in a script before it is displayed when OpenDialog is called.