[codebox]Public Class Form1
Dim myformat As String = "{0, 10}{1, 18}{2, 16}{3, 18}"
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
lbout.Items.Add(String.Format(myformat, "Customer Num", "Customer Type", "Gas Used", "Cost of Gas"))
End Sub
Private Sub butadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles butadd.Click
Dim customernumber, customertype, gasused, unitcost As String
Dim cost As Integer
customernumber = txtnum.Text
customertype = custtype.Text
gasused = txtgas.Text
unitcost = costunit.Text
cost = unitcost * gasused
lbout.Text = cost
lbout.Items.Add(String.Format(myformat, customernumber, customertype, gasused, costunit, cost))
txtnum.Clear()
txtgas.Clear()
custtype.Clear()
costunit.Clear()
End Sub
Private Sub butexit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles butexit.Click
Me.Close()
End Sub
End Class
[/codebox]
if oyu need more information or a copy of the program so far just ask
thanks