Fontdialog, colordialog, and savedialog change the font size and color, and save the image file in the future.

Source: Internet
Author: User

 

Private void button#click (Object sender, eventargs e) {response (); textbox1.font = response;} private void button2_click (Object sender, eventargs e) {response (); textbox1.backcolor = colordigalo1.color ;} private void button3_click (Object sender, eventargs e) {savefiledialog1.filename = ""; savefiledialog1.showdialog (); label1.text = savefiledialog1.filena Me; try {This. picturebox1.image. save (savefiledialog1.filename);} catch (exception ee) {label1.text = ee. message;} // if canceled, the file name to be saved is ignored. there is no way to create this file! // No error will occur either. It is interesting. If it cannot be saved, no error will be made .}

Job completed: Use the dialog box to change the font size, color, and savedialog to save the file. The file name has been specified in advance. You can also enter a file name by yourself.

Specify,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.