I have two forms, frmTransactionsAdd and frmReportView. When I select some items from the DataGridView in frmTransactionsAdd and click a button "Print Licenses", frmReportView opens and displays a report with data from the selected rows filled in.
This report needs to Duplex Print, and since I do not know what printer the final user shall be using, nor if the printer shall be dedicated to this one feature, I have encoded a checkbox on frmTransactionsAdd ' Show Print Instructions' and under the function that fires when frmReportView opens I have:
MessageBox.Show(CStr(frmTransactionsAdd.chkLicPrintInstructions.Checked)) If frmTransactionsAdd.chkLicPrintInstructions.Checked = True Then frmPrintInstructions.Show() End If
The issue I am having is that despite the ' Show Print Instructions' checkbox being checked or not, the value is always registering as False, thus my small form with instructions on duplex printing the report is never shown to the user.
I am trying to do things this way because a user who does this every day will not want to see the Instructions Form every time they go to print a license, but also if it is someone new, they may not know what to do.
When the user wants the Instructions, I need it to be the top-most visible form, without locking out everything else as it would with a .ShowDialog(), because the user still has other options they can do to the report before selecting print.
Can anyone tell me why the value is always registering as false? or perhaps even a better way to do this?