In many game applications, prevention of the keyboard is absolutely done. Ranging from prevention to normal character keys (a-z, read mark) enter, arrows, alt, ctrl, page up, page down, insert, key to escape. These buttons can be prevented so that the appropriate response.
At the tips at this time, we will try to make a small program demonstrate how to make prevention the emphasis on VB.Net and keyboard and then give a simple response to the emphasis on the key
Step by step to make is:
1. Create new project (Windows Application) with a new form. Components are added:
a. A textbox that has textbox1. Property for the textbox that was changed this property is a Vertical scrollbars, and a multiline True.
b. Textbox another name textbox2.
2. To initiate, type the following code
3. Prevention for TextBox2 event is as follows
4. To prevent the keys on the stress textbox1, we create a class called myKeyPressClass, with initialisation
5. Response prevention is given in the subrutin myKeyCounter:
6. If you run the view that is obtained
At the tips at this time, we will try to make a small program demonstrate how to make prevention the emphasis on VB.Net and keyboard and then give a simple response to the emphasis on the key
Step by step to make is:
1. Create new project (Windows Application) with a new form. Components are added:
a. A textbox that has textbox1. Property for the textbox that was changed this property is a Vertical scrollbars, and a multiline True.
b. Textbox another name textbox2.
2. To initiate, type the following code
3. Prevention for TextBox2 event is as follows
4. To prevent the keys on the stress textbox1, we create a class called myKeyPressClass, with initialisation
5. Response prevention is given in the subrutin myKeyCounter:
6. If you run the view that is obtained
Comments
Post a Comment