Click here to Skip to main content
15,894,460 members
Home / Discussions / C#
   

C#

 
AnswerRe: Convert int to int[ ]? Pin
S. Senthil Kumar6-Dec-05 20:29
S. Senthil Kumar6-Dec-05 20:29 
Questionsocket-client Pin
Ankit Aneja6-Dec-05 19:41
Ankit Aneja6-Dec-05 19:41 
AnswerRe: socket-client Pin
Vikram A Punathambekar6-Dec-05 21:59
Vikram A Punathambekar6-Dec-05 21:59 
GeneralRe: socket-client Pin
Ankit Aneja6-Dec-05 22:31
Ankit Aneja6-Dec-05 22:31 
QuestionSynchronization Require inStatic Function Call! Pin
majidbhutta6-Dec-05 17:54
majidbhutta6-Dec-05 17:54 
AnswerRe: Synchronization Require inStatic Function Call! Pin
S. Senthil Kumar7-Dec-05 1:33
S. Senthil Kumar7-Dec-05 1:33 
GeneralRe: Synchronization Require inStatic Function Call! Pin
majidbhutta7-Dec-05 3:33
majidbhutta7-Dec-05 3:33 
GeneralRe: Synchronization Require inStatic Function Call! Pin
S. Senthil Kumar7-Dec-05 4:12
S. Senthil Kumar7-Dec-05 4:12 
You can create a static object in the event handler class instead.

Something like
class XYZ
{
   static object syncObject = new object();
   void SomeMethod()
   {
      abc.SomeEvent += new SomeEvent(SomeEventHandler);
   }

   void SomeEventHandler(...)
   {
       lock(syncObject)
       {
          Component.Method1();
           ...
       }
    }
}


Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
GeneralRe: Synchronization Require inStatic Function Call! Pin
majidbhutta7-Dec-05 4:26
majidbhutta7-Dec-05 4:26 
GeneralRe: Synchronization Require inStatic Function Call! Pin
S. Senthil Kumar7-Dec-05 4:35
S. Senthil Kumar7-Dec-05 4:35 
GeneralRe: Synchronization Require inStatic Function Call! Pin
majidbhutta7-Dec-05 5:07
majidbhutta7-Dec-05 5:07 
QuestionI don't want to display Relation name on DataGrid Pin
dhtuan6-Dec-05 16:21
dhtuan6-Dec-05 16:21 
QuestionTreeView CheckBoxes, but not their children Pin
meatago6-Dec-05 14:28
meatago6-Dec-05 14:28 
QuestionSkeleton Key Cryptography Pin
MrEyes6-Dec-05 13:10
MrEyes6-Dec-05 13:10 
AnswerRe: Skeleton Key Cryptography Pin
Paul Conrad6-Dec-05 13:57
professionalPaul Conrad6-Dec-05 13:57 
QuestionHard Drive Firmware Serial Number Pin
theladsmith6-Dec-05 11:03
theladsmith6-Dec-05 11:03 
QuestionLocalizable application Pin
machocr6-Dec-05 10:36
machocr6-Dec-05 10:36 
AnswerRe: Localizable application Pin
lmoelleb6-Dec-05 20:45
lmoelleb6-Dec-05 20:45 
GeneralRe: Localizable application Pin
machocr7-Dec-05 3:10
machocr7-Dec-05 3:10 
AnswerRe: Localizable application Pin
softwareguy12-Apr-06 3:57
softwareguy12-Apr-06 3:57 
Questiontyped datset Pin
fmardani6-Dec-05 10:24
fmardani6-Dec-05 10:24 
QuestionSharepoint Pin
.NetRocker6-Dec-05 10:17
.NetRocker6-Dec-05 10:17 
AnswerRe: Sharepoint Pin
Curtis Schlak.6-Dec-05 14:07
Curtis Schlak.6-Dec-05 14:07 
QuestionShort Message Service Pin
mlheese6-Dec-05 10:08
mlheese6-Dec-05 10:08 
QuestionMDI Applications?? Pin
HahnTech6-Dec-05 9:33
HahnTech6-Dec-05 9: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.