Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27371

update position after form has been dragged

$
0
0
i am loading a form using


vb Code:
  1. Dim x As Integer = (Index.ClientSize.Width - frmPleaseWait.Width) - 430
  2.     Dim y As Integer = (Index.ClientSize.Height - frmPleaseWait.Height) - 90
  3.     Dim Points As Point = New Point(x, y)
  4. Myforms.Location = Points

the problem is when i first load the program and click a button to load this form it loads exactly where i need it "lets call this === spot x ==="

now if i close that secound form and drag the main form to new position on the screen then click the button to load the second form the second form does not load in the middle of the main form instead it still loads at " spot x" i.e the main forms original center point.

does any 1 know how to resolve this issue. thanks in advanced

Viewing all articles
Browse latest Browse all 27371

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>