Hi
I have a form with a splitcontainer, in the toolstrip i have a print Button. i open different forms in splitpanel2 via splitpanel1.
I would like to create a printclass whereto i can pass variables of the active forms...
for instance on form1 i have tabcontrol1 with tabpage1, which has DataGridView1, tabpage2 has DataGridview2 etc.
i would like to tell the printclass which datagridview to print when i click the printbutton on the toolstrip.
e.g. click tabpage1 > Print, then it should print Datagridview1
click tabpage2 , click print, then it should print Datagridview2
I am stuck, any help would be appreciated
I have a form with a splitcontainer, in the toolstrip i have a print Button. i open different forms in splitpanel2 via splitpanel1.
I would like to create a printclass whereto i can pass variables of the active forms...
for instance on form1 i have tabcontrol1 with tabpage1, which has DataGridView1, tabpage2 has DataGridview2 etc.
i would like to tell the printclass which datagridview to print when i click the printbutton on the toolstrip.
e.g. click tabpage1 > Print, then it should print Datagridview1
click tabpage2 , click print, then it should print Datagridview2
I am stuck, any help would be appreciated