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]