Preventing to close application

  • Thread starter Thread starter Robert Lie
  • Start date Start date
R

Robert Lie

Dear All,

Currently, I'm developing an application for pocket pc that will be used
for inventory purpose.
And I want to prevent my users for closing the application accidentally.
So I write the code to key in the password before they really exit from
the application.
But, unfortunately, it does't work.

Here's the code(in VB.NET 2003):

Private Sub frmFeedingScan_Deactivate(ByVal sender As Object, ByVal
e As System.EventArgs) Handles MyBase.Deactivate
InputBox("Passowrd pls?")
End Sub


Pls any advice or suggestion.

Thanks

Robert Lie
 
Back
Top