Ahmed,
Use the classes in the System.Management namespace to query for the
instance of the WIn32_Printer WMI class (you will get a management object),
and then call the SetDefaultPrinter method on it.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
ca*******@caspershouse.com
"ahmed khairy" <ah*********@discussions.microsoft.com> wrote in message
news:02**********************************@microsof t.com...
Hi, i would like to set a certain printer to be the default printer from
within my application developed using C#