I put 1 DataGridView, I named it DgvData, and 1 Label, I named it LblStatus.
I put in Form_Load :
	
	
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Output :
1
2
..
100
Label LblStatus become "Progress : 100".
It didn't show the LblStatus from 1 to 99. It just shows the end of the result.
VB.Net is finishing all the codes 1st, then showing the output.
What I want is, everytime it loops, the output shows the LblStatus.
What is the syntax that I need to put between :
.Rows(I).Cells(1).Value = I + 1
and :
LblStatus.Text = "Progress : " & I+1
Last time I used VB, I know the syntax, but now I forget it.
In C++, we can use "delay([number])" to show the output while still compiling.
Because in C++, it compiles so fast that we can't see the output progress with our eyes. That's why we use "delay".
Thanks in Advance.
Regards,
	
		
			
		
		
	
				
			I put in Form_Load :
			
				VB.NET:
			
		
		
		With DgvData
 .Rows.Clear
 .Rows.Add(99)
 For I as Integer = 0 to 99
  .Rows(I).Cells(1).Value = I + 1
  LblStatus.Text = "Progress : " & I+1
 Next I
End With1
2
..
100
Label LblStatus become "Progress : 100".
It didn't show the LblStatus from 1 to 99. It just shows the end of the result.
VB.Net is finishing all the codes 1st, then showing the output.
What I want is, everytime it loops, the output shows the LblStatus.
What is the syntax that I need to put between :
.Rows(I).Cells(1).Value = I + 1
and :
LblStatus.Text = "Progress : " & I+1
Last time I used VB, I know the syntax, but now I forget it.
In C++, we can use "delay([number])" to show the output while still compiling.
Because in C++, it compiles so fast that we can't see the output progress with our eyes. That's why we use "delay".
Thanks in Advance.
Regards,
			
				Last edited: 
			
		
	
								
								
									
	
		
			
		
		
	
	
	
		
			
		
		
	
								
							
							 
	 
 
		 
 
		 
 
		 
 
		 
 
		