variables - How to make a label show a double in vs 2012 c# -
I'm a response test comes when the green button I have a label, I have to start counting labels In milliseconds I have created a timer and a square so that the code looks like this:
class code:
class Class2 {public static int = 1 ; Public Stable Double B = 0.000; } timer code:
private void timer 2_Tick (object sender, Iventaarjis e) {WindowsFormsApplication3.Class2.b = WindowsFormsApplication3.Class2.b + 0.001 ; Label 1 Text = convert Toaster (windowsforms3 class 2.b); } but I'm getting an error saying "but the 'string' type from 'double' can not be converted." "How do I stop this error?"
some people have said here you have it: code:
{public form 1 () {Arnbhiksmuh ();} private void timer 1 volt (object sender, Iventargs e ) {WindowsFormsApplication3.Class2.a = WindowsFormsApplication3.Class2.a + 1; if (WindowsFormsApplication3.Class2.a == 8) {button1.Visible = false; button 2. qualified = true; Timer2.Enabled = true;} {} } not Iji zero timer 2_Tick (object sender, Iventarj e) {WindowsFormsApplication3.Class2.b = WindowsFormsApplication3.Class2.b + 001; Label1.Text = WindowsFormsApplication3.Class2.b.ToString ();} private void button 3_Click (object sender, EventArgs e) {button3.Visible = false; button 1. valid = true; Timer1.Enabled = true; error: error 1 indirectly 'double' type 'string' line 38 column convert 27 Can not be done
P>
Double. Use the toasting () method
label1.Text = WindowsFormsApplication3 .class2.b.ToString ();
Comments
Post a Comment