In my opinion, this is beyond help, because this code shows that you did not grasp an idea on what programming is. Programming is basically all about abstractions and not repeating any piece of code.
Repeating "
TextBox1.Text = TextBox1.Text +
" and other fragments several times shows that you don't know how to approach programming in general — just yet. Other problems include using
immediate constants hard-coded in the code especially string ones. Even "" is not acceptable (use
string.Empty
).
What else? Names like
Buttton16_Click
break all thinkable naming conventions. You should never use auto-generated names, always rename them into semantically sensible names. Visual Studio re-factoring engine makes it really easy. The
Boolean
variables
plus
,
minus
,
multiply
and
divide
make no sense. Empty method
Page_Load
should not present.
What do we have? There is practically no a single correct line. What would I advice? Abandon this project and make a big step back. Do most simple exercises to learn how value and reference types, fields, properties, events, classes, structures and instances, parameters and variable work. Look at good but simple code samples and understand them. Take some detailed manual of language and .NET and read it all, without skipping anything with exercises.
See also:
I have a problem with my program. Please help![
^].
—SA