Reputation: 49
How do I open a second form on the same monitor even if the user moves the app form to another monitor when it is running?
In need to learn how to open the FrmPopUp
on the same monitor as the FrmMain
even if FrmMain
has been moved during run time. Note: the FrmPopUp
auto closes in 5 seconds.
Currently when I run my vb.net app on my second monitor it always opens on the main monitor not the second monitor.
Please, Help this is my first post and want to thank everyone in advance.
Upvotes: 1
Views: 673
Reputation: 2442
When you make the show command, set the location of the windows, the same of the original form:
Dim Value as Point
Value = Me.Location;
Form2.Location = Value
Upvotes: 1