Re: Message Box

Tech-Archive recommends: Fix windows errors by optimizing your registry



You cannot disable the "X" in a msgbox - using an HTA is the common
workaround, which is why B-Mann suggested it. And the HTA he provided
contains some VBSCRIPT code to do the logoff for you. All you do is place
the text of his HTA into a file whose name ends with .HTA, and run it.

And, if it fails to run, that could be because perhaps one of the lines he
provided was so long that the software you are using to read his posts
"wrapped" that line. That is what is called "linewrap".

As for better suggestions, that is all we have been giving you. And that
better suggestion is to use the built-in ability of windows to display a
disclaimer notice. This has the advantage of:

- taking you less time to implement than you have spent on this wild goose
chase;
- being a more reliable way to be sure that people read and understand your
usage policies.


/Al

"Matt Setters" <mattsetters@xxxxxxxxxxxxxxxx> wrote in message
news:092893E4-FC35-4F6D-B32C-1EDD13921F38@xxxxxxxxxxxxxxxx
I know that .vbs was better for me because atleast i slightly understand
it.
if anyone else has any ideas or better suggestions please help.

"Matt Setters" <mattsetters@xxxxxxxxxxxxxxxx> wrote in message
news:33F6CDA6-D477-4787-98A5-0251348A69A9@xxxxxxxxxxxxxxxx
i have this script and i have it working the only thing is i need the no
button to logoff the workstation and i need to remove the x from the top
right, i am also just wondering wether it can be written so that you press
no it counts down from 10 to 0 then executes logoff.exe. I have been
trying all day for a response and nobody wants to know so far, i really
need it before the end of the day.

select case msgbox("{conditions of use text goes here}", _
vbquestion or vbyesno)
case vbyes
msgbox "having agreed, you may use this computer"
case vbno
msgbox "having NOT agreed, you should immediately log out"
end select





.


Quantcast