Click here to Skip to main content
15,662,426 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have five text boxes in my windows application..I have a progress bar on the same page.I want the progress bar move in 5 blocks based on the value entered in each text box.

That is;

entered a correct value in textbox1 means 1st move in progress bar
entered a correct value in textbox2 means 2nd move in progress bar

Atleast I want to make the progress bar move if some value is entered in the text box..Is it possible??

Any help would be really appreciated..

thanks in advance
Posted

 
Share this answer
 
Comments
Vysakh Venugopal 5-Jun-13 2:18am    
@Rockstar: But I want in such a way that when a textbox is filled with some text then only the progress bar should be moved..Is there any possibility for that??
Rockstar_ 5-Jun-13 2:47am    
ok, after each textbox's leave event increase the value of progress bar...
It is something like this::


progressBar1.Minimum = 0;
progressBar1.Maximum = 5;
progressBar1.Value = 0;
progressBar1.Step = 1;
for (int i = 1; i <= 1; i++)
{
progressBar1.PerformStep();
}
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900