Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Move a Form
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
Move a Form
Divers
Thread ID:
00841255
Message ID:
00841255
Vues:
43
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform