Click here to Skip to main content
15,911,360 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
From a TooStrip button I call the printDialog with the property UseEXDialog=true. The printDialog opens fine but it does not have the focus even if the dialog title bar is dark blue. I must click once on it to give it the focus then it works properly.

- If I disable the UseEXDialog, it works properly.
- If I call the printDialog from a standard button, it works properly.

I have class which is not inhertied from WinForm. I tried Application.DoEvents but it not working.

On PrintDilaog Ok Button press I need to do some work.


How to resolve above issues. ?
Posted
Comments
BulletVictim 30-Jul-13 6:48am    
Do you only want to use the toolstrip to call the printDialog or are you also going to use the standard button to call it? If you are also going to use the button i would suggest just calling the button_click event when you want to run it from the toolstrip.

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