Click here to Skip to main content
13,867,201 members
Rate this:
Please Sign up or sign in to vote.
See more:
I'm writing a program with Cefsharp. If you want to put the "Print" window on hold and the Print window is active, I would like to make the number of copies 2 and click the "Print" button. I would like your help.
How should c # encoding be?

print dialog menu class "# 32770"
Number of copies Box class name = "Edit5"
Print button class name = "Button15"

What I have tried:

using System.Runtime.InteropServices;

[DllImport ("User32.dll")]
static extern int SetForegroundWindow(IntPtr point);
Updated 6-Dec-18 21:32pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Maybe you can use IlifeSpanHandler before the print window appears: Capturing a pop up window using LifeSpanHandler and CefSharp[^]
0x01AA 6-Dec-18 18:08pm
+5 for first aid
Member 12459985 7-Dec-18 18:47pm
Sorry. I'm new user.
I did not know the rules for being foreign to the forum. I pay more attention. Thanks for your warning.
I could not. please help me. if you can write the encoding I would be very happy.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web05 | 2.8.190214.1 | Last Updated 7 Dec 2018
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100