Click here to Skip to main content
15,908,020 members

Comments by Member 11971472 (Top 18 by date)

Member 11971472 9-Sep-19 6:15am View    
private void PrintScreen()

{
Bitmap printscreen = new Bitmap(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
Graphics graphics = Graphics.FromImage(printscreen as System.Drawing.Image);
graphics.CopyFromScreen(0, 0, 0, 0, printscreen.Size);
printscreen.Save(@"C:\Temp\printscreen.jpg", ImageFormat.Jpeg);

using (var pd = new PrintDialog())
{
pd.PrinterSettings.PrinterName = "FOLLOWME-FARVE";

var info = new System.Diagnostics.ProcessStartInfo()
{
Verb = "print",
FileName = @"C:\Temp\printscreen.jpg",
};
Process.Start(info);
}
}
Member 11971472 26-Aug-16 4:12am View    
Jochen thanks. can I find example code somewhere if I wish to backup running config on a network switch? I would like to setup the job to run once every day.
Member 11971472 26-Aug-16 4:11am View    
yes network switches primarily hp and Cisco switches.
Member 11971472 29-Jan-16 8:44am View    
Can anyone provide me with some code for this? Can the Windows Username be used, so they do not need to enter the login details twice. They login when they start the day pc each day.

Then when the website is entered a query to AD should be made for the user so users belonging to department sales only can see the sales dropdown item.

I appreciate all the help I can get with code.
Member 11971472 16-Nov-15 3:59am View    
And how would I do that?