LMCKC207
Member
- Joined
- Apr 9, 2020
- Messages
- 17
- Programming Experience
- Beginner
Hi I need some little help here.
I'm trying to make a look-alike of win 10 calculator for my project but I can't understand the logic of the history (I don't know what it's called it just look like the history of what you do.) The circled one is what I'm trying to achieve but I can't make it to work. I also don't know if that's a label or a textbox that is just transparent?
I'm trying to make a look-alike of win 10 calculator for my project but I can't understand the logic of the history (I don't know what it's called it just look like the history of what you do.) The circled one is what I'm trying to achieve but I can't make it to work. I also don't know if that's a label or a textbox that is just transparent?
This is the code I'm using when to display the history. The user needs to click one of the operators.:
Private Sub operation_Click(sender As Object, e As EventArgs) Handles btnMultiply.Click, btnDivide.Click, btnAdd.Click, btnMinus.Click
Dim btnOperation As Guna.UI.WinForms.GunaButton = DirectCast(sender, Guna.UI.WinForms.GunaButton)
If input <> 0 Then
btnEquals.PerformClick()
expression = True
operation = btnOperation.Text
txtHistory.Text = input & " " & operation
Else
operation = btnOperation.Text
input = Double.Parse(txtInput.Text)
expression = True
txtHistory.Text = input & " " & operation
End If
End Sub