Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Center PrintPreviewDialog in VB.Net

Posted on 2009-07-08
2
Medium Priority
?
1,286 Views
Last Modified: 2013-11-25
Hello Experts,

I would like to know how I could center a PrintPreviewDialog on a screen. I already tried to do it with SetDesktopLocation but it did not work. Any ideas how to solve this?

Thank you in advance,
Zoidi
0
Comment
Question by:zoidi
2 Comments
 
LVL 19

Accepted Solution

by:
Rimvis earned 1000 total points
ID: 24801439
Like this?
        PrintPreviewDialog1.StartPosition = FormStartPosition.CenterScreen
        PrintPreviewDialog1.ShowDialog()

Open in new window

0
 
LVL 1

Author Closing Comment

by:zoidi
ID: 31600985
Thank you for your help. Don't know why I did not try this. Anyway, thank you :)
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question