Examples: Top property (window)

In the following example, the event procedure ascertains the position of the Reminders window, then uses the Top property to align the top border of the Customer Maintenance window with the top border of the Reminders window:

Private Sub Window_BeforeOpen(OpenVisible As Boolean)
	If Reminders.Visible = True Then
		'The Reminders window is open and visible
		CustomerMaintenance.Top = Reminders.Top
	End If
End Sub

Documentation Feedback