Click here to Skip to main content
15,905,148 members
Home / Discussions / C#
   

C#

 
GeneralRe: USB Card Reader Pin
Eddy Vluggen6-Jun-09 0:13
professionalEddy Vluggen6-Jun-09 0:13 
AnswerRe: USB Card Reader Pin
EliottA5-Jun-09 4:02
EliottA5-Jun-09 4:02 
GeneralRe: USB Card Reader Pin
bonkers1235-Jun-09 23:27
bonkers1235-Jun-09 23:27 
GeneralRe: USB Card Reader Pin
bonkers12310-Jun-09 20:52
bonkers12310-Jun-09 20:52 
AnswerRe: USB Card Reader Pin
Dave Kreskowiak5-Jun-09 4:41
mveDave Kreskowiak5-Jun-09 4:41 
GeneralRe: USB Card Reader Pin
Neophyte305-Jun-09 5:16
Neophyte305-Jun-09 5:16 
GeneralRe: USB Card Reader Pin
harold aptroot5-Jun-09 5:27
harold aptroot5-Jun-09 5:27 
GeneralRe: USB Card Reader Pin
bonkers12310-Jun-09 20:48
bonkers12310-Jun-09 20:48 
QuestionHelp with processing an Image Pin
livewirerules5-Jun-09 3:51
livewirerules5-Jun-09 3:51 
AnswerRe: Help with processing an Image Pin
dan!sh 5-Jun-09 3:54
professional dan!sh 5-Jun-09 3:54 
Questionchange C# to vb.net Pin
Franklinlloyd5-Jun-09 3:45
Franklinlloyd5-Jun-09 3:45 
AnswerRe: change C# to vb.net Pin
dan!sh 5-Jun-09 3:49
professional dan!sh 5-Jun-09 3:49 
AnswerRe: change C# to vb.net Pin
Nagy Vilmos5-Jun-09 5:38
professionalNagy Vilmos5-Jun-09 5:38 
AnswerRe: change C# to vb.net Pin
Franklinlloyd5-Jun-09 5:57
Franklinlloyd5-Jun-09 5:57 
QuestionIndexing Service Pin
ellllllllie5-Jun-09 2:50
ellllllllie5-Jun-09 2:50 
AnswerRe: Indexing Service Pin
Nagy Vilmos5-Jun-09 3:01
professionalNagy Vilmos5-Jun-09 3:01 
GeneralRe: Indexing Service Pin
ellllllllie5-Jun-09 3:30
ellllllllie5-Jun-09 3:30 
GeneralRe: Indexing Service Pin
Nagy Vilmos5-Jun-09 3:44
professionalNagy Vilmos5-Jun-09 3:44 
GeneralRe: Indexing Service Pin
dan!sh 5-Jun-09 3:46
professional dan!sh 5-Jun-09 3:46 
Questionbackground worker Pin
havejeet5-Jun-09 2:03
havejeet5-Jun-09 2:03 
AnswerRe: background worker Pin
Nicholas Butler5-Jun-09 2:13
sitebuilderNicholas Butler5-Jun-09 2:13 
AnswerRe: background worker Pin
I Believe In GOD5-Jun-09 2:18
I Believe In GOD5-Jun-09 2:18 
if you fill the Datagridview row by row then it's will take a while but it's easy

1- Get the DataTable rows count
2- Progress Max Value = row Count
3- on every row you add by manual Incearse the progressbar value

here is a sample :

int RowCount = 100;
       int AddRow = 0;
       private void button3_Click(object sender, EventArgs e)
       {
           progressBar1.Maximum = RowCount;
           backgroundWorker1.WorkerReportsProgress = true;
           backgroundWorker1.RunWorkerAsync();

       }

       private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
       {
           for (int i = 0; i < RowCount; i++)
           {
               AddRow = i;
               backgroundWorker1.ReportProgress(AddRow);
           }

       }

       private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e)
       {
           progressBar1.Value = e.ProgressPercentage;
       }


P.S :
I would never add row to datagrid manually I would use DataSource properties

I know nothing , I know nothing ...

AnswerRe: background worker Pin
DaveyM695-Jun-09 2:27
professionalDaveyM695-Jun-09 2:27 
QuestionForward a port in a router programmatically Pin
Majid_grok5-Jun-09 1:55
Majid_grok5-Jun-09 1:55 
AnswerRe: Forward a port in a router programmatically Pin
harold aptroot5-Jun-09 2:14
harold aptroot5-Jun-09 2:14 

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.