using CommonDialog class
Eg:
the code to invoke the default font dialog box by using the FontDialog control is given below:
private sub displayfont_click(byval sender as system.object,byval e as
system.eventargs) handles displayfont.click fontdialog.showDialog()
textbox1.font=fontdialog1.font
end sub
the code to invoke the default font dialog box by instantiating the
fontdialog class is:
dim fdialog as new fontdialog()
private sub displayfont_click(byval sender as system.object,byval e as
system.eventargs) handles displayfont.click
fdialog.showDialog()
textbox1.font=fontdialog1.font
end sub
Eg:
the code to invoke the default font dialog box by using the FontDialog control is given below:
private sub displayfont_click(byval sender as system.object,byval e as
system.eventargs) handles displayfont.click fontdialog.showDialog()
textbox1.font=fontdialog1.font
end sub
the code to invoke the default font dialog box by instantiating the
fontdialog class is:
dim fdialog as new fontdialog()
private sub displayfont_click(byval sender as system.object,byval e as
system.eventargs) handles displayfont.click
fdialog.showDialog()
textbox1.font=fontdialog1.font
end sub
No comments:
Post a Comment