
Close [x] Button on Form not working
it is a documented bug, that we are all finding very annoying, pressure is
mounting for ms to fix this one in a service pack, care to add your vote!
Apparently it is caused by deleting/removing a User control from the
form/panel while it has focus, workarounds seem to be setting focus to a
known but invisible control before the suspect form is repainted!
Colin
Quote:
> We have a program which has a Main MDI form and y number
> of children. After a few of our routines have been
> processed, the [x] Close button on the main form no longer
> works. Moreover, the close event doesn't fire anymore
> when we click the x, all that happens is the button
> presses up and down and that's it.
> I know this is vague, but since we don't have any code
> that addresses the close event or this button on the form,
> nor anything that disables it, we are absolutely stumped
> as to what could be causing this. Furthermore, I've
> stepped through every line of code in the procedure and
> see nothing whatsoever that could be doing this. We're
> thinking perhaps it's a bug in .net, but we haven't seen
> anything about it anywhere and don't like to blame
> Microsoft when we may(probably are) guilty.
> Any ideas?