C# Speedometre?

Hey, trying to get a speedometre working, not making it on screen or anything, I’m just wanting it to read the speed in KHM and do stuff, I know what I’m wanting to do, but not really sure how to actually code the speedometre, all the google results are all in Javascript.

Just wondering if anybody can help out?

Something like that ?