Handling Keyboard Events in Visual Basic 6

In Visual Basic, we can write codes for handling events triggered by input from the keyboard. When the user presses a key on the keyboard, it will trigger an event or a series of events. These events are called the keyboard events. In Visual Basic, the three basic event procedure to handle the keyboard events are KeyPress, Keydown and KeyUp

The keyboard event occurs when the user presses any key that corresponds to a certain alphanumeric value or an action such as Enter, spacing, backspace and more. Each of those value or action is represented by a set of code known as the ASCII . ASCII stands for American Standard Code for Information Interchange. ASCII stands for American Standard Code for Information Interchange. Computers can only understand numbers, so an ASCII code is the numerical representation of a character such as ‘a’ or ‘@’ or an action of some sort. ASCII was developed a long time ago and now the non-printing characters are rarely used for their original purpose.In order to write code for the Keyboard events , we need to know the ASCII and the corresponding values

Read More Here………………..

Creating Passwords Cracking Program using Visual Basic 6

This Visual Basic 6 passwords cracking program can generate possible passwords and compare each of them with the actual password; and if the generated password found to be equal to the actual password, login will be successful.

In this program, three timers are inserted into the form The passwords generating code is entered under each of the Timer () event by double-clicking the relevant timer . The interval of the timers can be set in their properties window where a value of 1 is equivalent to 1 millisecond, and a value of 1000 is 1 second; the smaller the value, the shorter the interval. The Timer’s Enabled property is set to false so that the program will only start generating the passwords after the user clicks on the command button.

Read More

Using Timer in Visual Basic 2012

In Visual Basic 2012, the timer control is used to manipulate events that are time related. For example, you need timer to create a clock, a stop watch, a dice, animation and more.

In order to create a clock, you need to use the Timer control that comes with Visual Basic 2012. The Timer control is a control object that is only used by the developer, it is invisible during runtime and it does not allow the user to interact with it.

To create the clock, start a new project in Visual Basic 2012 Express and select a new Windows Application. You can give the project any name you wish, but we will name it MyClock. Change the caption of the Form1 to MyClock in the properties window. Now add the Timer control to the form by dragging it from the ToolBox. Next, insert a label control into the form………..

Read On

Using Check Box in Visual Basic 2012

Check box is a very useful control in Visual Basic 2012. It allows the user to select one or more items by checking the check box or check boxes concerned. For example, in the Font dialog box of any Microsoft Text editor like FrontPage, there are many check boxes under the Effects section such as that shown in the diagram below. The user can choose underline, subscript, small caps, superscript, blink and etc. In Visual Basic 2012, you may create a shopping cart where the user can click on check boxes that correspond to the items they intend to buy, and the total payment can be computed

Read On………….

Creating a Scientific Calculator

In Visual Basic, we can create a calculator that resembles a typical scientific calculator , albeit a simpler version. In our version, we have only included the trigonometric functions and the logarithmic functions. The reason of creating a simpler version of the calculator is to help users to learn the programming concepts in a gradual manner and not to confuse them especially those who are learning to program in Visual Basic.

Read On…………….