I think you need give pointer on MainForm object to your optionDialog and then use this pointer.
a life without programming is like an empty bottle
Forum Rules
Bookmarks