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
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
TrinityPosted Sep 27, 2009, 2:46 PM
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; }
}
}