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????
Printable View
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????
Can you post all the code from your form (including the Windows Generated bit)? Also, post the code that loads and shows the form.
thanks for the reply
i removed some files and compresses it as long as i can
the problem is with the frmCompanies.vb form
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:
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.