Strange Form.Load problem
-
I have an old VB6 projected that I have upgraded to VB.NET and all works well apart from one strange issue. I have a form with an Load event handler, not if I display the form using myForm.Show () Load executes, if I use myForm.ShowDialog () then Load does not execute! Is there a way round this? Thanks Stephen.
-
I have an old VB6 projected that I have upgraded to VB.NET and all works well apart from one strange issue. I have a form with an Load event handler, not if I display the form using myForm.Show () Load executes, if I use myForm.ShowDialog () then Load does not execute! Is there a way round this? Thanks Stephen.
I have not played around with .ShowDialog much, but from the looks of it, what you see is what you get. Is there a reason you are using ShowDialog vs. show? Are you really trying to use this form as a modal dialog box?