Results 1 to 5 of 5

Thread: Child Form

Threaded View

  1. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2002
    Location
    Canton, GA
    Posts
    487

    Sorry...

    Maybe I should have made myself a little bit clearer... What I want to do is place code into the "Move" event that will replace the form to the center of the parent if it is moved...

    Basically I just don't want the person to move the form ... Maybe I am going about it the wrong way...

    Any Tips?

    Code Below:



    Thanks,

    Anjari

    P.S. - The above code doesnt work either that appears to be "Startup" settings...

    Code:
    Protected Overrides Sub OnClosed(ByVal e As System.EventArgs)
    
            'Show Menu Items
            Dim MainForm As New frmMain()
            MainForm = Me.ParentForm
            MainForm.mnuCompanyCompanyInformation.Visible = True
            MainForm.mnuCompanySpacer1.Visible = True
    
        End Sub
     
        Protected Overrides Sub OnMove(ByVal e As System.EventArgs)
    
            'Restore to Center Screen if Moved
    
    
        End Sub
    
        Private Sub btnCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCancel.Click
    
            'Close Form
            Me.Close()
    
        End Sub
    Last edited by Anjari; Jan 28th, 2003 at 11:02 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width