Thanks that worked great

is that the simplest way to do it thought??

that looks prety complex and thier are some things in the code like:

Public Const EWX_LOGOFF = 0
Public Const EWX_SHUTDOWN = 1
Public Const EWX_REBOOT = 2

If an = vbYes Then
erg& =ExitWindowsEx(EWX_REBOOT, 0&)
End If

thoes code snipits seem to be used to shut down the computer are they nesisary i dont know any computer that need to be shut down to change the res mabye real old ones do though

and also how do i get it to make the code i type in the post form message look like code