Click here to Skip to main content
15,908,841 members
Home / Discussions / C#
   

C#

 
QuestionCommunicating with Macromedia Flash in .Net Pin
Hadi Riazi6-Dec-05 21:32
Hadi Riazi6-Dec-05 21:32 
Questionsave aimage from the form in .jpeg format Pin
dhol6-Dec-05 20:21
dhol6-Dec-05 20:21 
QuestionConvert int to int[ ]? Pin
MudkiSekhon6-Dec-05 20:12
MudkiSekhon6-Dec-05 20:12 
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 
well here is the description of my problem
I have a component in which all the methods are static let
the skeleton is like below

public Class Component
{
.............
.........
.......

public static void St_F1(--,--,--)
{
--- -
---
--
}

public static void St_F2(--,--,--)
{
--- -
---
--
}

public static void St_F3(--,--)
{
--- -
---
--
}

public static void St_F4(--)
{
--- -
---
--
}


}

//////////////////
now these functions are called in other class MyClass in
the delegate MyDlg that is called when the Capture event
occurs
public Class MyClass
{
----
----
private Scanner myobj=new Scanner();

myobj.Capture+=new CaptureEventHandler(MyDlg);

private void MyDlg(---,--,---)
{
Componet.St_F4(--);

Componet.St_F1(--,--,---);

if(myobj.id==1)
Componet.St_F3(---,--);

if(myobj.id==2)
Componet.St_F2(--,--);

}

}


////////////////////////

Now i make 2 objects of MyClass each of them has a unique

value of myobj.id
MyClass ClassObj1=new MyClass();
MyClass ClassObj2=new MyClass();

Now both of these instances of the MyClass have to call
event myobj.Capture+=new CaptureEventHandler(MyDlg);
implicitly nad may be event occurs from both objects at a time i want to make the call to the each Static Function called in the body of MyDlg synchronized. So as Only one object may call the Static function at a time. How to achieve this. Plz help Me

Thnx in Advance








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 
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 

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.