Form Load Cancel
Posted on 2007-07-26
I need a clean way to cancel a forms load event and change the focus to a different form and load the other form.
My application starts and a splash screen loads, then form1 loads the mainstay of form1 is a listview, if the listview has no rows then Form2 should load and take the focus. At what point should I stop the form loading, bearing in mind that the form1 is the main start up form. Should I test the sql that fills the listview at form1s load and then change the start form to form2. Or should I test the sql when the splash screen loads and change the form load at this time, what is the best option?