Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Position MsgBox in VBSCRIPT

346 views
Skip to first unread message

Dwayne Brown

unread,
Dec 19, 2000, 12:49:37 AM12/19/00
to
This newsgroup has been so helpful, I'll try again.

Is there a way to make a MsgBox appear exactly where you want it to on the
screen? (In an ASP)

I could use hooks in VB6, but they won't work in VBS.


Mike Brett

unread,
Dec 19, 2000, 6:05:25 PM12/19/00
to
Have you tried looking up "CSS Positioning" in MSDN website. That should
give you some leads.

HTH - Mike -

Dwayne Brown wrote in message ...

Michael Harris

unread,
Dec 19, 2000, 11:53:48 PM12/19/00
to
A MsbBox isn't an HTML element - it's a essentially Windows dialog box.

It *can* be positioned (see Jim Warrington's recent "Ann: Sub-Classing in
wsh? how inappropriate, HOW OUTRAGEOUS!!!" post in the WSH NG) but requires
subclassing. Jim's post point to his latest creation that actually let's
script clients do subclassing (that boy's got **way** too much time on his
hands ;-)... Of course this is way outside tyhe sandbox so forget IE hosted
script.

--
Michael Harris
Microsoft.MVP.Scripting
--
mik...@mvps.org
Please do not email questions - post them to the newsgroup instead.
--

"Mike Brett" <mike....@onet.REMOVETHIS.co.uk> wrote in message
news:u7vv0AhaAHA.1596@tkmsftngp05...

jim_w

unread,
Dec 20, 2000, 11:43:05 AM12/20/00
to
hi Dwayne,

NO, you can't position a mb from IE, but...

You CAN make up a dhtml-based page that looks almost exactly like a msgbox,
and position it anywhere you want (provided you have a reasonable IE window
object model and doc obj model understanding).

Take a look at the "Ersatz Message Box" page on the following website:

http://home.att.net/~wshvbs/index.htm

cheers, jw

"Dwayne Brown" <d...@inormonline.com> wrote in message
news:OAr4Z#XaAHA.1380@tkmsftngp04...

0 new messages