I took your latest and added a minimum, which will allow scaling from a negative if the needs arises (the circle is still based on 0-100% for the fill). I figure this object could be used as a dashboard item. Thanks for your input on this. One question, how hard is it, if even possible, to add thresholds that are dynamic? So, if I wanted to created 3 thresholds that would change the color based on the value. I know this is simple in code, but was wondering about properties. So, is it possible to have a property that controls how many thresholds, then dynamically creates properties that allows to setup those thresholds.
Oh, one other question, on a property like:
Private m_Maximum As Integer = 100
Public Property Maximum As Integer
Get
Return m_Maximum
End Get
Set(ByVal value As Integer)
m_Maximum = value
Invalidate()
End Set
End Property
I was using "Maximum" in my code, I noticed you are using "m_Maximum". Both work, so what is the difference and is it important to do it the way you have? I know a lot of this is based on standards, which as you can see I'm still far from understanding.
James