Hello all,
I am working with elevator problem in C#.net.....am having a small problem
i have an ElevatorForm class which contains the GUI part i.e., all labels and buttonss...so on....
am having another class ElevatorLabel in which we are assinging values to lables as below snippet of code...in ElevatorLabel am creating an object for Elevator class as shown below
ElevatorForm Efrm=new ElevatorForm();
for(int i=0;i<5;i++)
{
Efrm.label1.Text = i.ToString(); //Assingning value to label
} but it is displaying the last value i.e., 4...i want to dispaly likw 0 ,1,2,3,4 ..plz suggest me with an solution
thanking u
Enter your message below
Sign in or Join us (it's free).