Public Sub CenterForm(ByVal form As System.Windows.Forms.Form, ByVal m_application As ESRI.ArcGIS.Framework.IApplication) Dim pWinPos As ESRI.ArcGIS.Framework.IWindowPosition Dim CenterX As Short Dim CenterY As Short pWinPos = m_application CenterX = (pWinPos.Width / 2) + pWinPos.Left CenterY = (pWinPos.Height / 2) + pWinPos.Top form.Location = New System.Drawing.Point(CenterX - form.Width / 2, CenterY - form.Height / 2) form.StartPosition = Windows.Forms.FormStartPosition.Manual End Sub
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.