private void OnBack_Click() { if (printPreviewControl2.StartPage == 0) { return; } printPreviewControl2.StartPage--; SetPageNumText(); ToolBarMain.Invalidate(); }
private void OnBack_Click() { if (printPreviewControl2.StartPage == 0) { return; } printPreviewControl2.StartPage--; ToolBarMain.Buttons["PageNum"].Text = (printPreviewControl2.StartPage + 1).ToString() + " / " + TotalPages.ToString(); ToolBarMain.Invalidate(); }