kj2w Posted February 15, 2012 Report Share Posted February 15, 2012 I have a HorizontalGauge with this property set: [color= blue]Private[/color] _timeLGauge [color= blue]As[/color] [color= blue]New[/color] [color= #2b91af]HorizontalGauge[/color] [color= #2b91af] _timeLGauge.MainScale.Min = 0_timeLGauge.MainScale.Max = 360 [/color]_timeLGauge.MainScale.Tickmarks.Major.Step = 60 When this get generated, there are 6 Major Tickmarks with the values of {360, 300, 240, 180, 120, 60, 0} written above the Tickmarks. How can I change these values to something more custom? Maybe like {'A-360', 'B-300', 'C-240', 'D-180', 'E-120', 'F-60', 'G-0'} J Quote Link to comment Share on other sites More sharing options...
kj2w Posted February 15, 2012 Author Report Share Posted February 15, 2012 Looks like an answer might be: _timeLGauge.MainScale.Tickmarks.Format.FormatCustom = "A-#" _timeLGauge.MainScale.Tickmarks.Format.FormatType = ValueFormatType.Custom But what if I wanted to convert those values to Hours:Minutes? So the set of {360, 300, 240, 180, 120, 60, 0} now appear as {06:00, 05:00, 04:00, 03:00, 02:00, 01:00, 00:00}? J Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.