Avatar

Level 7

Hi,

I'm not sure if this is helpful. The Initialize event is a process event--it fires (and executes its scripts) every time you create a new instance--even those new instances created by a button click. Unfortunately, it fires when you first open the form. So, if setting the width when openning is alright, you can use this event without any conditions added.

Otherwise, you could put a "if" condition on the script to have it count the number of instances (or some other condition) and if it meets the condition then it can set the width.

Good luck!

Stephen