How can I do arithmetic operations in one text box?

For example, I write in TextBox1

4*5 or 3-2

how to make an answer in the same text box?

I tried this, but it still didn't work

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
 textbox1.text = val(textbox1.text)
end sub

it just shows the first number

+4
source share
1 answer

, VB.NET. - . - . , , , , , . , , , NCalc . .NET CodeDom .NET, .

+4

Source: https://habr.com/ru/post/1532121/


All Articles