Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
private void rbnbtnPageSetup_Click(object sender, EventArgs e)
    {
        if (IsFormOpen(typeof(GUI.Printing)))
        {

        }
        else
        {
            MessageBox.Show("Please Open Printing Form");
        }
    }


IsFormOpen (typeof (GUI. Printing)) is the method that return true if printing Form is open.

I want to open the print preview button in Printing form. Make sure i don't want to open new printing form. my requirement is if printing form is open then press print prieview button of that form.

please help me. Thank You.
Posted

1 solution

Try btnPreivew_Click(null,null); where btnPreivew is the name of your button.
 
Share this answer
 

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