4 replies
by sujit.kumar.adhikari Accepted solution
by tony hopkinson Accepted solution
You might get away with moving the code to a later event, FormActivate for instance.
However to be safe, put a boolean in Form Load
initialised to false, check it in Activate, if false populate the listbox and set it to true.
However the order events fire in is not wholly reliable.
You would be better off switching things round so successful login populates the list box, or the sub form only gets loaded if there has been a successful login.
Further Info
http://www.knowdotnet.com/articles/eventfiringorder.html
by sujit.kumar.adhikari Accepted solution
by tony hopkinson Accepted solution
that something else is going wrong
I'm assuming that the listbox populates from the database connection that you are logging into.
What line of code does the exception get thrown on if you step into the subform open routine.
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending