12-21C # COMPUTER blue screen effect (can spoof people), input/output stream (StreamReader/streamWriter ),

Source: Internet
Author: User

12-21C # COMPUTER blue screen effect (can spoof people), input/output stream (StreamReader/streamWriter ),

I. winform computer Blue Screen Effect

Method 1: basic operations:

Step 1: Create a new C # form "Form1 ";

Step 2: In the design window, change its properties:

1) text attribute: cancel the text in the text attribute of form1, and leave the form name blank;

2) showIcon attribute: Because the winform contains the Icon by default, you only need to change the showIcon attribute to false (the Icon is not displayed );

3) StartPosition attribute: centerScreen;

4) FormBoderStyle attribute: Set to None (the border of the form will be removed)

5) Backcolor attribute: Set it to HotTrack. (You can also set other colors. Here, this color is used to display realistic effects ...)

Step 3: You can add text and other control effects. The following are two images. (In order to display the vivid effect, we recommend that you use the first image ...)

Effect 1:

Result 2:

 

Method 2: write the code (but it is a little troublesome ...)

Ii. StreamReader (output stream)

-- Output from the hard disk after being compiled by StreamReader and read the file;

For example, ["open" operation in a text document]

Iii. StreamWriter (input stream)

-- Writing files to hard disks through StreamWriter as a stream;

For example, ["save" operation in a text document]

 

Related Article

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.