Let's say I'm making an application to store income and expenses for my lemonade stand.
In this application I would like to be able to set notes for each day aswell as have an area where I can type in what I've earned and what I've spent that day.
I have made it so I can store notes for each day, and I'm able to save them, however I do not know how I should store the income and expenses for each day.
This is how I'm saving the notes for each day:
I also want to be able to add together all expenses and income for each month on a different form.
This is what I got:
![Name: Capture.PNG
Views: 76
Size: 19.4 KB]()
It's the todays income and expenses. I want to be able to use the save button to save that aswell.
So if I haven't repeated myself enough, I need help with the code for saving the income/expense of each day, and be able to add them together for the entire months income and expenses.
In this application I would like to be able to set notes for each day aswell as have an area where I can type in what I've earned and what I've spent that day.
I have made it so I can store notes for each day, and I'm able to save them, however I do not know how I should store the income and expenses for each day.
This is how I'm saving the notes for each day:
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
If TextBox1.Text = "" Then
If File.Exists(g & ".txt") Then
File.Delete(g & ".txt")
End If
End If
If TextBox1.Text.Length > 0 Then
File.WriteAllText(g & ".txt", TextBox1.Text)
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
This is what I got:
It's the todays income and expenses. I want to be able to use the save button to save that aswell.
So if I haven't repeated myself enough, I need help with the code for saving the income/expense of each day, and be able to add them together for the entire months income and expenses.