Click here to Skip to main content
15,895,256 members
Home / Discussions / C#
   

C#

 
AnswerRe: VS question about the auto generated InitializeComponent() method Pin
Urs Enzler26-Nov-07 21:56
Urs Enzler26-Nov-07 21:56 
Questionfetching the value of a datafield into a textbox Pin
Nitin.raj26-Nov-07 20:37
Nitin.raj26-Nov-07 20:37 
AnswerRe: fetching the value of a datafield into a textbox Pin
Sun Rays26-Nov-07 21:12
Sun Rays26-Nov-07 21:12 
GeneralRe: fetching the value of a datafield into a textbox Pin
Nitin.raj26-Nov-07 23:28
Nitin.raj26-Nov-07 23:28 
GeneralRe: fetching the value of a datafield into a textbox Pin
Sun Rays27-Nov-07 0:27
Sun Rays27-Nov-07 0:27 
AnswerRe: fetching the value of a datafield into a textbox Pin
KennyPatel26-Nov-07 21:39
KennyPatel26-Nov-07 21:39 
GeneralRe: fetching the value of a datafield into a textbox Pin
Nitin.raj26-Nov-07 23:25
Nitin.raj26-Nov-07 23:25 
Questionprogressbar along with task activity [modified] Pin
pradhumanksingh26-Nov-07 20:34
pradhumanksingh26-Nov-07 20:34 
Hello everybody!!!!

I am Pradhuman.
I have to apply the progressbar along with status of the task to show in C#, for windows appliction.
for example : suppose in a file i have 100 records. while progressing the progressbar it has to show out of 100 record how many has been mapped like this.

can anybody send me the code for the above senario help me out.

regards,
pradhuman

thanx sun rays

here with i tried the follwoing code, but its not working as i want. Only progressbar is showing not the activity ststus....

private void button1_Click(object sender, System.EventArgs e)
{
for(int i=progressBar1.Minimum; i<=progressBar1.Maximum; i++)
{
progressBar1.PerformStep();
}

float fpercent = 0;
int counter = 0;
int file = 120;
do
{
fpercent = (float)counter / (float)file * 100;
updateprogress((int)fpercent);
counter++;

}while (fpercent < 100);

// if (progressBar1.Value == progressBar1.Maximum)
// {
// progressBar1.Value = progressBar1.Minimum;
// }
// progressBar1.PerformStep();
//label1.Text=progressBar1.Value.ToString() ;



}


public void updateprogress(int npercent)
{
progressBar1.Value = npercent;
}

plz help me out


-- modified at 3:38 Tuesday 27th November, 2007
AnswerRe: progressbar along with task activity Pin
Sun Rays26-Nov-07 21:16
Sun Rays26-Nov-07 21:16 
GeneralRe: progressbar along with task activity Pin
pradhumanksingh26-Nov-07 21:47
pradhumanksingh26-Nov-07 21:47 
GeneralRe: progressbar along with task activity Pin
Sun Rays26-Nov-07 21:52
Sun Rays26-Nov-07 21:52 
GeneralRe: progressbar along with task activity Pin
pradhumanksingh26-Nov-07 22:11
pradhumanksingh26-Nov-07 22:11 
GeneralRe: progressbar along with task activity Pin
Sun Rays26-Nov-07 22:38
Sun Rays26-Nov-07 22:38 
QuestionHow to disable a ListView item? Pin
arefkarimi26-Nov-07 20:25
arefkarimi26-Nov-07 20:25 
AnswerBlatant Multiposting Within 3 Minutes (Occurence: 1) : Please Ignore Pin
Vasudevan Deepak Kumar26-Nov-07 20:28
Vasudevan Deepak Kumar26-Nov-07 20:28 
QuestionHow to disable a ListVite item? Pin
arefkarimi26-Nov-07 20:23
arefkarimi26-Nov-07 20:23 
AnswerBlatant Multiposting within 1 minute :: Occurence: 2 (Please Ignore) Pin
Vasudevan Deepak Kumar26-Nov-07 20:30
Vasudevan Deepak Kumar26-Nov-07 20:30 
QuestionHow to disable a ListViewItem? Pin
arefkarimi26-Nov-07 20:22
arefkarimi26-Nov-07 20:22 
AnswerRe: How to disable a ListViewItem? Pin
KennyPatel26-Nov-07 21:42
KennyPatel26-Nov-07 21:42 
AnswerRe: How to disable a ListViewItem? Pin
mav.northwind26-Nov-07 21:59
mav.northwind26-Nov-07 21:59 
GeneralRe: How to disable a ListViewItem? Pin
arefkarimi26-Nov-07 22:33
arefkarimi26-Nov-07 22:33 
GeneralRe: How to disable a ListViewItem? Pin
mav.northwind27-Nov-07 1:57
mav.northwind27-Nov-07 1:57 
GeneralRe: How to disable a ListViewItem? Pin
Dave Kreskowiak27-Nov-07 9:03
mveDave Kreskowiak27-Nov-07 9:03 
Questionhow can i checked dynamicallay in gridview in windows. Pin
Rajeshwar Code- Developer26-Nov-07 19:55
Rajeshwar Code- Developer26-Nov-07 19:55 
AnswerRe: how can i checked dynamicallay in gridview in windows. Pin
Sun Rays26-Nov-07 19:57
Sun Rays26-Nov-07 19:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.