Results 1 to 1 of 1
2002-11-12, 11:39 #1
- Join Date
- Aug 2001
- Jeddah, Saudi Arabia
- Thanked 1 Time in 1 Post
Load event not firing (Visual Studio .NET EA)
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?