VB.NET, C#, PowerShellを使用しているエンジニアのためのサイト。
基本的な使用方法から開発で役立つTipsまで幅広く取り扱っています。
PrintDialogで指定された部数を取得するにはCopiesプロパティを使用します。
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim ps As New Printing.PrinterSettings 'プリンタ設定情報をダイアログにセット PrintDialog1.PrinterSettings = ps 'PrintDialog表示する If PrintDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then '部数を取得する MessageBox.Show(PrintDialog1.PrinterSettings.Copies) End If End Sub