Results 1 to 2 of 2

Thread: [RESOLVED] Disabling the close button on a MdiChild form

  1. #1

    Thread Starter
    Addicted Member rabid lemming's Avatar
    Join Date
    Feb 2005
    Posts
    210

    Resolved [RESOLVED] Disabling the close button on a MdiChild form

    I can get this (http://www.vbforums.com/showthread.php?t=351533 ) to work on my main form but not on forms that i set as MdiChildren forms of my main form. How can i adapt the code from that link to disable the close button on my MdiChildren forms ?

    I will wait for death with a smile and a big stick

  2. #2

    Thread Starter
    Addicted Member rabid lemming's Avatar
    Join Date
    Feb 2005
    Posts
    210

    Re: Disabling the close button on a MdiChild form

    Ah nm i found by adding it to the a timer tick event i can make it work

    VB Code:
    1. Me.MdiParent = MyForm.ActiveForm
    2.         Dim myMenuManager As New SystemMenuManager(Me, False, SystemMenuManager.MenuItemState.Greyed)

    Thanks

    I will wait for death with a smile and a big stick

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