Code:
public static class myPrinters
{
[DllImport("winspool.drv", CharSet = CharSet.Auto, SetLastError = true)]
public static extern bool SetDefaultPrinter(string Name);
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
Leave a comment: