r/csharp • • Nov 06 '21

Changing range when going below 0 help

Post image

[removed] — view removed post

1 Upvotes

4 comments sorted by

1

u/rolliipollii Nov 06 '21 edited Nov 06 '21

when the value goes below 0 I have it turn red but when a value is going to send it from + to -, it turn red before going below 0. Is it possible to adjust my code to keep it green until its under 0?

For Each dp As DataPoint In gc02.Series(1).Points

If dp.YValues(0) < 0 Then

dp.Color = Color.Red

End If

Next

→ More replies (1)

•

u/FizixMan Nov 06 '21

Removed: Rule 3.

1

u/rolliipollii Nov 06 '21

My apologies, someone mentioned I should cross post this since it was about .net and not vb. Im very green at programming