I'm still learning how to work with c sharp so it might not be any close to perfect but this is an example of what is happenning:
Expand|Select|Wrap|Line Numbers
- private void btnDifference_Click(object sender, EventArgs e)
- {
- lblDifference.Visible = true;
- salesDifference = comp.GetDifference(difference);
- outputMessage = "The difference between the highest and lowest sales is $" + salesDifference;
- lblDifference.Text = outputMessage;
- }
salesDifference is my global variable that i created in form1.cs
comp is the name of my class that i created at the top of form1.cs aswell
difference is the name of the variable that i returned in the method GetDifference but it says that difference does not exist in the current context and i don't know why >.<
Can someone help me fix this problem?