Click here to Skip to main content
15,880,796 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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);
Posted
Updated 6-Dec-18 20:32pm

1 solution

Maybe you can use IlifeSpanHandler before the print window appears: Capturing a pop up window using LifeSpanHandler and CefSharp[^]
 
Share this answer
 
Comments
[no name] 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900