Time.ToString("0.0")
si presenta come un decimale "1.5" per anziché 1:30. Come posso visualizzarlo in un formato orario?Converti un tempo in una stringa formattata in C#
private void xTripSeventyMilesRadioButton_CheckedChanged(object sender, EventArgs e)
{
//calculation for the estimated time label
Time = Miles/SeventyMph;
this.xTripEstimateLabel.Visible = true;
this.xTripEstimateLabel.Text = "Driving at this speed the estimated travel time in hours is: " + Time.ToString("0.0") + " hrs";
}
Che tipo è il tempo? è mobile? –