Você está na página 1de 1

ALIEGER, ANTHONY G. T-6 MR.

ROLLIE MAGSALIN

First, I created a form then put 3 textboxes for the First Number, Second Number and for the Sum. After naming, declaring, and putting the formula in computing the sum on the Compute button. I decided to create a Datagrid to display the First Number, Second Number and the Sum. After adjusting the size of the Grid, I went on the Compute Button to display the DataGrid and put some row and columns on it by using:
Dim dt As New DataTable - (THIS WILL DECLARE dt As a new Datatable) dt.Columns.Add("First Number") 1st column dt.Columns.Add("Second Number") 2nd column dt.Columns.Add("Sum ") - 3rd column

DataGrid1.DataSource = dt dt.Rows.Add(New Object() {txtFirstNumber.Text, txtSecondNumber.Text, lblSum.Text}) This will show the inputted and computed sum of the numbers.

After connecting the DataGrid on the textboxes and lblSum, I edited the Clear Button and Exit button by putting the codes.

Você também pode gostar