Startpage by using an combobox
Posted: Fri Jul 27, 2018 10:18 am
Hello,
How can i use my combobox to view the printpages i want to see
on my preview document
but when we select 2 we don't get the next page
we like to use our combobox as a sort of next page and previous page option instead of buttons
Thank you.
How can i use my combobox to view the printpages i want to see
on my preview document
Code: Select all
If we select 1 we get the first page thats coolIf Not ComboBox2.Items.Contains(String.Format("{0}", Me.PrintPreviewControl1.PageCount)) Then
ComboBox2.Items.Add(String.Format("{0}", Me.PrintPreviewControl1.PageCount))
End If
'we have 2 pages
Private SubiComboBox2_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox2.SelectedIndexChanged
Dim sheets As Double = ComboBox2.SelectedText.ToString
Me.PrintPreviewControl1.StartPage += sheets
End Sub
but when we select 2 we don't get the next page
we like to use our combobox as a sort of next page and previous page option instead of buttons
Thank you.