During our 10th laboratory activity on February 20, 2008,this is the
hardest or difficult part for us because we will use a class and also it's method in
our activity entitled The Gross Pay.
We also add properties into a class.
In our 11th meeting in our laboratory, we continued our activity entitled,
The Gross Pay.
In our 9th laboratory activity, February 13 2008, we discussed about class Object-Oriented Program or OOP. Maybe it's hard to understand but they say you can learned it time-to-time. Class has also components: Properties, Constructors, there are two types of Constructor the default constructor and with parameters. In Class we used and applied the Encapsulation. We also learned to add a form.
When we are doing program, I know it's hard to create a program using a class. Until there were a time that I've understand to use class and I am being interested in class.
Our 8th laboratory activity we applied the key trapping in our program. We used key trapping for eliminating unacceptable keystroke. Key press to allow you to input Letters/Numbers.
We use this formula:
Select case e.keychar
Case cchar (“”) to cchar (“”)
e.Handled=false
case else
e.Handled=true
End select
On how to edit:
Sendkeys.Send (“{home} + {end}”)
I’ve learned also how to use error provider. It become Error Provider if you enter unacceptable keys, it will display an error message.
During our 7th laboratory in the month of January, we discussed about Checkbox, Vscrollbar and Hscrollbar. Checkbox is to permit multiple selections from a number of options. List box its look like combo box.
Formula:
Listbox.Items.Add (Textbox1.text)
textbox1.text=””
Textbox1.focus.
To adds the item in the list box and to remove we use this formula: i=listbox1.selectionIndex
If i>0 then
listbox1.item.removeAt (i)
Else
Msgbox.show (“Select it First”, List Box is Empty)
I have learned the functions of combobox, vscrollbar and hscrollbar. The difference between the hscrollbar and vscrollbar.
In our 6th laboratory activity we created an ACNE CAR RENTALS where we used combo box to select what type of car we are going to use then compute the car rental, to its basic charge, mileage charge and the insurance. We also used Select Case .The second activity was the months and days.
The formula for the month:
For nd=1 to d combobox2.item.add (nd)
Next nd
And if you click the month the numbers of days will appear. The third activity was about apartment rental and the number of furnished. The fourth activity was the time consumed.
In our laboratory activity I’ve learned on how to use a TIME using the toolbox, toolstripstatus. Our activity I used time and toolstripstatus and to display time/date in a form.
This formula will display the day:
ToolStripStatusLabel1.text=Now
Then the time and date we use this formula:
ToolStripStatusLabel1.text=format (now,”T”)
The second laboratory activity we created a simple application using radio button, toolbox and group box then we apply them renaming either male/female, we used if statement in the third and fourth activity and for our last activity this is the hardest to all that sir given to us because it is graded activity. We apply and used what we have learned to the activity that we finished. And sir gave the activity. The Tax Due of single, married, head of the family and the widower. Sir,said we will use the if statement
I have learned to use if statement and also it's functions.
In our fourth laboratory, we do activities, the Date function, Number of hours and the Basis Pay. On the Date function, we dispaly the day, month and year. The format of date is mm / dd / yyyy. In the second activity, there is formula in getting the number of hours. For example, you enter your birthdate, month and year and then you deducted it from the date. month, and year today.
I've learned to used the function of date in Microsoft Visual Basic 2005. Also easy to get the total number of your age. The total number of month and date and also the hours, minutes and seconds.![]()
Our third laboratory activity, the first activity is about Net Pay. To get the net pay, we should enter the basic and the deduction. The second activity is showiing a message on the textbox ans the third activity is the same as the second activity but there is also difference between the second activity.
The graded activity that is given to us is about Math Tutor. There are four types of Math Tutor the follwing are:
In the program the we are doing, we used the toolbox, Label.The formula that we are used are the following:
Label1 + Label2 = Label3
Label1 - Label2 = Label3
Label1 / Label2 = Label3
Label1 * Label2 = Label3
After using this all the types of Math Tutor, the correct answer will post on the first form that we've created.
In our second laboratory activity we create a program about area of square. In creating this program, we use this formula:
area = Length * Width * height.
To get the total value of the area of the square. and for our graded activity we compute a grade, In this we use class. To get the value of the grade, we used this formula:
grade = ( ( midterm_grade / 3) + ( 2 * fianl_grade ) / 3)
In the data grade, we use six forms.
I've learned to get the value of area and grade.