Count to take how many prints taken from my machine on file print option
hi i have created a application in C#.now i want to take a count for how many prints r taken from my machine on system file-print option
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Trinity105 reputationPosted Sep 27, 2009, 10:46 AM EDT
class Program
{
static public event PrintCountEventHandler CounterEvent;
static void Main(string[] args)
{
//Implement the logic that triggers the event here
}
}
public delegate void PrintCountEventHandler(object sender, PrintCountEventArgs args);
public class PrintCountEventArgs : EventArgs
{
private int _count;
public PrintCountEventArgs(int Count)
{
Count = _count;
}
public int Copies
{
get { return _count; }
}
}