I misunderstood what you meant the first time, and I got really excited when I did understand because I thought it would work. Then the brick wall came...LOL I forgot that my main Form is MODAL, and when I make Form.Visible = False, it releases the block on the main thread, thereby terminating the entire application.
>I mean hook into the minimize and set the main forms visible to false. I'm assuming that the form is minimized and thats why you are working in the restore. If the form isnt visible when the resore fires you dont have to worry about the data being displayed to an unautherized user. afer the log in is succesful you could set the visible back to true.
>
>Just a roungh idea.
________________________
Ben Santiago, MCP & A+
Programmer Analyst (SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS)
Eastern Suffolk BOCES - Student Data Services
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
-Rich Cook