conceptdata
asked on
.Net PrintDialog Focus/Ontop
Hi
I have the attached code in my program
But I losses focus on the print dialog box.
My program runs minimized n the process bar.
I have the attached code in my program
But I losses focus on the print dialog box.
My program runs minimized n the process bar.
Dim printDlg As New PrintDialog()
printDlg.PrinterSettings.PrinterName = My.Settings.PrinterName
printDlg.AllowSelection = True
printDlg.AllowSomePages = True
printDlg.AllowCurrentPage = True
printDlg.ShowNetwork = True
'printDlg.UseEXDialog = True
If (printDlg.ShowDialog() = DialogResult.OK) Then
printer_name = printDlg.PrinterSettings.PrinterName()
My.Settings.PrinterName = printDlg.PrinterSettings.PrinterName()
Else
printer_name = ""
End If
Do you mean the dialog box does not have focus when its shown?
ASKER
Yes - The print dialog box disapears to the "back".
All other programs is in front of the dialog box.
All other programs is in front of the dialog box.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I can see how it works, but how to put in into my printerdialog code, It's not a form
ASKER
I have solved it myself with this code before the ShowDialog
Me.TopMost = True
But the other suggested solutions, maybe they could work to, so you get the point .. :)
Me.TopMost = True
But the other suggested solutions, maybe they could work to, so you get the point .. :)