I am very very new to VB so bare with me. What I am looking to do is create a splash screen so when users log on to the domain they have to agree to the terms of our corp policy. If they do not agree then the will not be able to login
Just create a simple form (FORM1) with your required text on. use the properties of the form to make border style fixed single. add a button (COMMAND1) saying "I AGREE" or whatever and another button (COMMAND2) saying they disagree. create the rest of your application. If you want another form to be displayed (FORM2) then add this to your COMMAND1
Sub Command1_Click()
Form2.Show
Unload Me
End Sub
If they click on command2 or try to ALT-F4 out, add these lines..
Sub Command2_Click()
Call NotAccepted
End Sub
Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Call NotAccepted
End Sub
Sub NotAccepted()
MsgBox "You have not agreed to our terms. This program will close"
End
End Sub
> If they do not agree then the will not be able to login
You will find it rather tricky to get a VB program to run before the user logs in.
The registry, however, contains two setting that allow you to modify the login dialog, which would allow you to display a legal notice and warning (normal caveats about how you can render your PC inoperable if you don't know what you are doing apply):
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.