cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling the location of a .NET form from PB Classic script

former_member329524
Active Participant
0 Kudos

Hello, all

I have a .NET form, which is supposed to be opened in ShowDialog function from a PB classic window.

I need to specify the Left and Top position of the form based on the PB window location on a screen.

Let's say I know exactly the left and top offset of the .NET form on the window in PB Units. How do I translate these values into something .NET can understand?

Is the a built-in function for converting units into pixels?

Thank you

Arcady

Accepted Solutions (0)

Answers (2)

Answers (2)

arnd_schmidt
Active Contributor
0 Kudos
Former Member
0 Kudos

UnitsToPixels and PixelsToUnits