• Load event not firing (Visual Studio .NET EA)

    Home » Forums » Developers, developers, developers » DevOps Lounge » Load event not firing (Visual Studio .NET EA)

    Author
    Topic
    #379300

    I have just converted a VB6 project to .NET. In VB .NET, when the initial form is closed the program terminates. To stop this by changing the logic of the program would take a major redesign so I changed the form control code to use the modal facility when showing a form. i.e. .ShowDialog instead of .Show

    When I ran the program I found that the Load event was not firing when the .ShowDialog method was used.

    I get around this by calling the Load procedure myself so I have a work around.

    Has anyone else found this? Is it a bug or a .NET ‘feature’?

    I can’t find any mention of this behaviour in any manual I have, or anywhere else for that matter.

    Can anybody point me to anywhere that explains this behaviour?

    Regards,

    Kevin Bell

    Reply To: Load event not firing (Visual Studio .NET EA)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: