Advertisement
Java_Volume1 Custom Controls/ Forms/ Menus #89341

Center_Form

To center all of your forms nicely on the screen, use this as the first line in the Form_Load event--resolution independent. 'note:call this function like this: Center_Form Me

AI

AI 요약: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

소스 코드
original-source
Sub Center_Form (frmForm As Form)
 frmForm.Left = (Screen.Width - frmForm.Width) / 2
 frmForm.Top = (Screen.Height - frmForm.Height) / 2
End Sub
Public Apath As String = System.Environment.CurrentDirectory
'example:
FileCopy(Apath & ".\images\Yellow.jpg", ofile1 & "Yellow.jpg")
원본 댓글 (3)
Wayback Machine에서 복구됨