Before sharing the experience of this extracurricular practice, this time, we will share the lessons learned from the extracurricular practice of knowledge and skills. Although there is a good saying, do not do not prepare the war, but, I want to say is that there are many things in life is not allowed us to be prepared. Encounter things must face the edge, as for the lack of mastery of skills, it depends on your ability, learning ability is fast enough, the ability to withstand pressure is strong enough. In short, there is a war unprepared. The usual training is the ability to solve problems.
interface of the Software
There are a lot of groups whose interface is made of gorgeous background images. But I don't agree with that. I personally feel that people's living environment is very complex, especially the Chinese-style software, a variety of plug-ins, I do not know everyone's annoying, in short I am bored to death. No piece of software is so neat, concise and straightforward.
So my request is that the appearance of the software does not require too much decoration, simple and generous, clear operation.
- The transfer of parameters between forms.
- Method 1 establishes a Cpublic class, which stores all public variables.
- Method 2, override the form's show () function.
The code for Method 1 does not show that the release 2 is as follows:
- The above form is shown in modal mode, where the difference between modal and non-modal is described. The teacher speaks very hard in class, but does not understand, or in the process of practice, profoundly distinguishes between modal and non-modal differences.
Modal: When a modal form is ejected, the main program pauses from where it was called until the main program runs after the modal form has been closed.
Non-modal: When a non-modal form is ejected, the main program does not pause, but continues execution. The non-modal form and the main program are independent.
- Learn to use the DBHelper () class. Software operation is bound to have data participation, so the database operation is indispensable. Encapsulate what you often use as a class, which is handy when used.
- File filters for C #
- Single-instance usage (I think it's a single instance, one event only raises one form, and when the form is blocked by the main form, clicking the event again, instead of popping up a form the second time, activates the subsequent form.) )
- Grideview's Little knowledge
- Does the beginner's guide start? (For novice navigation problems, that is, the program starts again, the user chooses whether to start the Novice guide.) )
I use only a small trick, in the words of friends, is "cheating", hehe. Now I can only think of such a method. All know that the program is running again, all the variables will be restored to the initial value, we can save this identity variable outside.
- A form has a design pattern: it removes the title bar of the form. As we all know, we want to move the form words, we need the title bar, the title bar is gone, this indicates that we want to think of other ways to move the form. Logical algorithm, there is not much to say.
- Although it is said that only 2 b people will put the picture into the database, but this time I have tried a bit 2B. I have stored the image in a field of the image type of the database in the form of a 2 block byte.
- Next, the stored procedure is used to store the information in the database.
C # Extracurricular practice--campus second-hand platform (technical article 1)