|
-
Oct 1st, 2012, 06:15 AM
#1
Thread Starter
PowerPoster
[RESOLVED] center a smaller form over the calling form
i am trying to center a smaller form over the calling form
like this:
code in the smaller form
Public Sub CenterMe(frm As Form)
Me.Left = frm.ScaleWidth / 2 - Me.Width / 2
Me.Top = frm.ScaleHeight / 2 - Me.Height / 2
Me.Show
End Sub
Calling it like this:
form1.CenterMe frmKeno
The smaller form is too far left and not high enough. (not centered)
what am i doing wrong ?
Waiting for a full featured smart phone with out marrying a provider
Go Android
Go raiders 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|