Winston
Junior Contributor
i have a form
it hasa button
click on it a font dialog appears
user selects it
then the font is applied to be preivewd in a label
and then the font name displayed
once the user clicks on apply
the font is applied to the main form
i.e. mainform.font = fontdialog.font
this is what i put in the appply button
dim mainform as new frmmain
mainform.font = fntdlg.font
what happens is it keeps creating new main forms and loading and my system tray has like 20 billion of the app opened
i have no way of doing it
any way u guys?
it hasa button
click on it a font dialog appears
user selects it
then the font is applied to be preivewd in a label
and then the font name displayed
once the user clicks on apply
the font is applied to the main form
i.e. mainform.font = fontdialog.font
this is what i put in the appply button
dim mainform as new frmmain
mainform.font = fntdlg.font
what happens is it keeps creating new main forms and loading and my system tray has like 20 billion of the app opened
i have no way of doing it
any way u guys?