Click here to Skip to main content
15,949,686 members
Home / Discussions / C#
   

C#

 
GeneralRe: Read mails from mail server Pin
Rob Philpott24-Apr-06 5:36
Rob Philpott24-Apr-06 5:36 
GeneralRe: Read mails from mail server Pin
AmitSumit24-Apr-06 21:11
AmitSumit24-Apr-06 21:11 
QuestionFile Systems in asp.net Pin
spokione23-Apr-06 21:03
spokione23-Apr-06 21:03 
QuestionProblem in Console application Pin
Sunny H23-Apr-06 20:59
Sunny H23-Apr-06 20:59 
AnswerRe: Problem in Console application Pin
karande2323-Apr-06 21:05
karande2323-Apr-06 21:05 
GeneralRe: Problem in Console application Pin
karande2323-Apr-06 21:11
karande2323-Apr-06 21:11 
AnswerRe: Problem in Console application Pin
HimaBindu Vejella23-Apr-06 21:45
HimaBindu Vejella23-Apr-06 21:45 
Questionthreading Pin
karande2323-Apr-06 20:55
karande2323-Apr-06 20:55 
This is my code below..the problem ofcourse progress bar once started works fine..after browsing thru other forms and returning back to this form only repaints it when progress bar functionality is complete.

private void button2_Click(object sender, EventArgs e)

{

demothread = new Thread(new ThreadStart(ProgSafe));

demothread.Start();

}




private void ProgSafe()

{


if (this.progressBar1 .InvokeRequired )

{

SetProgCall del = new SetProgCall(ProgSafe); //SetProgCall is a delegate.

this.Invoke(del);



}

else

{

Progress();

}


}

public void Progress()

{

for (int i = 0; i < 100; i++)

{

Thread.Sleep(200);

this.progressBar1.Value = i;


// Application.DoEvents(); It is fantastic when using tis statement but not good programming..so is there other way out....(backgroundworker is good )


}


}
AnswerRe: threading Pin
Robert Rohde24-Apr-06 0:09
Robert Rohde24-Apr-06 0:09 
QuestionPrevent user from opening >1 subform Pin
livez23-Apr-06 20:45
livez23-Apr-06 20:45 
AnswerRe: Prevent user from opening &gt;1 subform Pin
Naveed Kamboh24-Apr-06 1:36
Naveed Kamboh24-Apr-06 1:36 
GeneralRe: Prevent user from opening &gt;1 subform Pin
livez24-Apr-06 1:40
livez24-Apr-06 1:40 
AnswerRe: Prevent user from opening >1 subform Pin
The Nemesis24-Apr-06 2:44
The Nemesis24-Apr-06 2:44 
QuestionHow to Detect the CD drive and USB drives using# Pin
ranandbe23-Apr-06 19:57
ranandbe23-Apr-06 19:57 
Questionpassing string arrays between clients side and server side Pin
umaheshchandra23-Apr-06 19:53
umaheshchandra23-Apr-06 19:53 
AnswerRe: passing string arrays between clients side and server side Pin
HimaBindu Vejella23-Apr-06 23:27
HimaBindu Vejella23-Apr-06 23:27 
QuestionUse mouse in Console Application in C# Pin
Sunny H23-Apr-06 19:09
Sunny H23-Apr-06 19:09 
AnswerRe: Use mouse in Console Application in C# Pin
Christian Graus23-Apr-06 19:18
protectorChristian Graus23-Apr-06 19:18 
Questionlistview Pin
phucoi23-Apr-06 18:40
phucoi23-Apr-06 18:40 
AnswerRe: listview Pin
Naveed Kamboh23-Apr-06 23:59
Naveed Kamboh23-Apr-06 23:59 
AnswerRe: listview Pin
CWIZO23-Apr-06 23:59
CWIZO23-Apr-06 23:59 
QuestionAdding a phantom item to a databound combo box? Pin
Furty23-Apr-06 18:33
Furty23-Apr-06 18:33 
AnswerRe: Adding a phantom item to a databound combo box? Pin
Josh Smith24-Apr-06 4:41
Josh Smith24-Apr-06 4:41 
QuestionLDAP & Create User Pin
AnhTin23-Apr-06 17:40
AnhTin23-Apr-06 17:40 
QuestionEnable Tabpage in Tabcontrol Pin
phucoi23-Apr-06 17:33
phucoi23-Apr-06 17:33 

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.