Click here to Skip to main content
15,901,872 members
Home / Discussions / C#
   

C#

 
GeneralRe: ArrayList Pin
miah alom9-Sep-05 4:32
miah alom9-Sep-05 4:32 
GeneralRe: ArrayList Pin
Judah Gabriel Himango9-Sep-05 4:57
sponsorJudah Gabriel Himango9-Sep-05 4:57 
GeneralRe: ArrayList Pin
Daniel Turini9-Sep-05 11:05
Daniel Turini9-Sep-05 11:05 
AnswerRe: ArrayList Pin
Guffa9-Sep-05 4:12
Guffa9-Sep-05 4:12 
QuestionThread Safe or not ... Pin
brunoconde9-Sep-05 3:37
brunoconde9-Sep-05 3:37 
AnswerRe: Thread Safe or not ... Pin
Dave Kreskowiak9-Sep-05 4:42
mveDave Kreskowiak9-Sep-05 4:42 
AnswerRe: Thread Safe or not ... Pin
S. Senthil Kumar9-Sep-05 4:52
S. Senthil Kumar9-Sep-05 4:52 
AnswerRe: Thread Safe or not ... Pin
Judah Gabriel Himango9-Sep-05 4:57
sponsorJudah Gabriel Himango9-Sep-05 4:57 
Windows Forms has NEVER been thread safe! In fact, Win32 common controls have never been thread safe. Even the new UI coming in Windows Vista is not thread safe. In .NET 1.1, the application would run ok for awhile, but you'd run into subtle bugs eventually. In .NET 2.0, a error is issued if you try to use Windows Forms controls from another thread.

If you want to use a Windows Forms control from another thread, use the Control.Invoke and Control.BeginInvoke methods:

void CalledFromAnotherThread()
{
   // Call textbox.Invalidate() method on the UI thread.
   myTextBox.Invoke((ThreadStart)myTextBox.Invalidate);
}


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Cops & Robbers
Judah Himango


QuestionMuting sound Pin
Lapje9-Sep-05 3:14
Lapje9-Sep-05 3:14 
AnswerRe: Muting sound Pin
miah alom9-Sep-05 4:18
miah alom9-Sep-05 4:18 
AnswerRe: Muting sound Pin
brunoconde9-Sep-05 4:23
brunoconde9-Sep-05 4:23 
GeneralRe: Muting sound Pin
miah alom9-Sep-05 4:33
miah alom9-Sep-05 4:33 
GeneralRe: Muting sound Pin
Lapje9-Sep-05 5:41
Lapje9-Sep-05 5:41 
AnswerRe: Muting sound Pin
Lapje9-Sep-05 22:26
Lapje9-Sep-05 22:26 
QuestionDisplaying a form with in a panel control Pin
Rizwan Bashir9-Sep-05 3:04
Rizwan Bashir9-Sep-05 3:04 
AnswerRe: Displaying a form with in a panel control Pin
miah alom9-Sep-05 4:09
miah alom9-Sep-05 4:09 
GeneralRe: Displaying a form with in a panel control Pin
Dave Kreskowiak9-Sep-05 4:37
mveDave Kreskowiak9-Sep-05 4:37 
AnswerRe: Displaying a form with in a panel control Pin
Dave Kreskowiak9-Sep-05 4:39
mveDave Kreskowiak9-Sep-05 4:39 
GeneralRe: Displaying a form with in a panel control Pin
miah alom9-Sep-05 4:46
miah alom9-Sep-05 4:46 
GeneralRe: Displaying a form with in a panel control Pin
Susan Hernandez9-Sep-05 13:18
Susan Hernandez9-Sep-05 13:18 
GeneralRe: Displaying a form with in a panel control Pin
Dave Kreskowiak9-Sep-05 14:07
mveDave Kreskowiak9-Sep-05 14:07 
QuestionWhy Interface doesn't support fields? Pin
manimalap9-Sep-05 2:42
manimalap9-Sep-05 2:42 
AnswerRe: Why Interface doesn't support fields? Pin
Guffa9-Sep-05 4:04
Guffa9-Sep-05 4:04 
AnswerRe: Why Interface doesn't support fields? Pin
S. Senthil Kumar9-Sep-05 7:42
S. Senthil Kumar9-Sep-05 7:42 
QuestionHow to make a Form *transparent* to clicks Pin
Dario Solera9-Sep-05 2:21
Dario Solera9-Sep-05 2:21 

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.