Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Move a Form
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
Move a Form
Miscellaneous
Thread ID:
00841255
Message ID:
00841255
Views:
42
I have a MDI Parent/Child situation and I am trying to prevent my child form from moving it's left position to a negative. Same goes for the top position. I have achieved this via the following code:
Private Sub frm_A_Users_Move(ByVal sender As Object, _
        ByVal e As System.EventArgs) Handles MyBase.Move

        Dim intLeft As Integer = Me.Left
        Dim intTop As Integer = Me.Top

        If intLeft < 0 Then Me.Left = 0
        If intTop < 0 Then Me.Top = 0

End Sub
This works but the controls on the form will flicker when the form comes up against this boundry. How or where do I prevent this from happening?

Jason
Next
Reply
Map
View

Click here to load this message in the networking platform