Skip to main content

Create a Stopwatch of using Visual Basic2010


Create a Stopwatch  - Visual Basic  2010
Part-01
This tutorial will show you how to make a stopwatch:
Click on Project next to Create:

Click on Windows Form Application, and name the project "Your name's Stopwatch" and then click Ok.
                                          

You can change the form text to "your name's stopwatch". Click on the form and then go to properties window, then change the text property.
You also need to disable the maximize control of the form. That's because you don't want the user to maximize the stop watch. Go to the properties window, and change the maximize box property to False:
               

                                           

You also need to change the FormBorderStyle property to Fixed3D
                                           

Add a label to the form and change it's text to 00:00:00:000
To do that right click on the label and click on properties. In the properties window, change the text as follows:
                                           


Change the font's size of the label. In the properties window, go to Font:
                                           


The font dialog will show up. Under the size, choose the number 28 then click Ok:

                                           

Add a timer to the form:
In the toolbox, drag the timer to the form. The timer will appear in the gray area below the form:

                                                     


Right click on Timer1 and click on properties. In the properties window, change the interval property to 1.

                                             


Drag a listbox from the toolbox and place on the form as the picture below:

                                                


Add a button to the form and change it's text to Mark:

                                               













Comments

Popular posts from this blog

Managing a Simple Mailing List

This hour provides the first of several hands-on, small projects designed to pull together your PHP and MySQL knowledge. In this hour, you'll learn the methods for creating a managed distribution list, which can be used to send out newsletters or anything else that you want to send, to a list of email addresses in a database. The mailing mechanism you'll use in this hour is not meant to be a replacement for mailing list software, which is specifically designed for bulk messages. The type of system you'll build in this lesson should be used for only small lists of fewer than a few hundred email addresses. In this hour, you will learn how to Create a subscribe/unsubscribe form and script Create a front end for sending your message Create the script that sends your message Developing the Subscription Mechanism You learned in earlier lessons that planning is the most important aspect of creating any product. In this case, think of the element...

Program_function_01

Using Function: Finding the maximum of three integers. /* Fig. 5.4: fig05_04.c     Finding the maximum of three integers */  #include <stdio.h> int maximum( int x, int y, int z ); /* function prototype */  /* function main begins program execution */  int main( void )  {     int number1; /* first integer */     int number2; /* second integer */     int number3; /* third integer */     printf( "Enter three integers: " );     scanf( "%d%d%d", &number1, &number2, &number3 );     /* number1, number2 and number3 are arguments        to the maximum function call */     printf( "Maximum is: %d\n",  );     return 0; /* indicates successful termination */  } /* end main */ /* Function maximum definition */ /* x, y ...

Program_function_02

Adding two Integer number using Function. /* Adding two Integer number using Function.*/  #include <stdio.h> int sum( int x, int y); /* function prototype */ int sub( int x, int y); int mul( int x, int y); int div( int x, int y);  /* function main begins program execution */  void main( )  {     sum (5,7);     sub (10,5);     mul (10,5);     div (10,5);  } /* end main */ /* Function maximum definition */ /* x, y and z are parameters */ int sum( int x, int y) {     printf ("%d", x+y);     getch(); } /* end function maximum */ int sub( int x, int y) {     printf ("%d", x-y);     getch(); } int mul( int x, int y) {     printf ("%d", x*y);     getch(); } int div( int x, int y) {     printf (...