Results 1 to 4 of 4

Thread: form that noit closing by press on X button

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Posts
    175

    form that noit closing by press on X button

    i have regular form in vb.net but i cant close it when i press on the X button it the control box - what is the reason for that????

  2. #2
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536
    Can you post all the code from your form (including the Windows Generated bit)? Also, post the code that loads and shows the form.
    This world is not my home. I'm just passing through.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Posts
    175

    here is the code - and thnks for the fast response

    thanks for the reply
    i removed some files and compresses it as long as i can
    the problem is with the frmCompanies.vb form
    Attached Files Attached Files

  4. #4
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536
    You'll need to at least include the resx files if I'm going to have a proper look at it.

    My first guess, however, is that where you have this code in the Closing event an error occurs and the Closing event doesn't complete.

    VB Code:
    1. Me.MdiParent.MdiChildren(0).Enabled = True

    You have frmCompanies set up as your start-up form, so it can't have an MdiParent - it should probably be an MDI parent.
    This world is not my home. I'm just passing through.

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