Hi,
What am I doing wrong here:
it's error says something about a double.....Code:Label1.Text = "The system will reboot in " + Reboot_Timer + " seconds, to finalize any settings..." + Environment.NewLine + Environment.NewLine + "Please standby!"
Printable View
Hi,
What am I doing wrong here:
it's error says something about a double.....Code:Label1.Text = "The system will reboot in " + Reboot_Timer + " seconds, to finalize any settings..." + Environment.NewLine + Environment.NewLine + "Please standby!"
Use & for concatenation, NOT +.
I assume Reboot_Timer is some numeric value...
vb.net Code:
Label1.Text = "The system will reboot in " & Reboot_Timer.toString & " seconds, to finalize any settings..." & Environment.NewLine & Environment.NewLine & "Please standby!"
Actually if you use the correct operator, &, then the conversion is inferred and the explicit conversion is unnecessary, so the error wouldn't ever have arisen.Quote:
& Reboot_Timer.toString
ThankS