Launch a VB.NET dialogbox in a specific location from Namespace
Posted on 2011-02-24
I am trying to show a startup dialog box in a specific screen location. The catch is that I am trying to do it from the Namespace of VB.NET.
Presently, my launch code is:
Application.MainForm = New frmHelloWorld
which works, but does not position the dialogbox in any particular location. I have tried to change the code to the following, which includes some positional logic:
Dim db As New frmHelloWorld
db.Location = PointToScreen(New Point(4, 73))
But, it doesn't like "PointToScreen" which I thought was fair game in VB.NET.
Am I doing anything right here?