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

Custom button text w/ vbscript MsgBox

2,200 views
Skip to first unread message

Brian D'Altilio

unread,
Aug 8, 2003, 4:04:25 PM8/8/03
to
I am trying to make a .vbs MsgBox that has Buttons 3 Buttons w/ custom
Text. I want the buttons to be:

Copy
Move
Cancel

I am using code similar to this:

Response = MsgBox("Please Choose...", vbYesNoCancel + vbQuestion,
"Question.....")
Select Case Response
Case 6 'User has clicked Yes
'*** Your Code Here ***
Case 7 'User has clicked No
'*** Your Code Here ***
Case 2 'User has clicked Cancel
'*** Your Code Here ***
End Select


Is what I am looking for possible?

Thank you.

Brian D

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Ray at <%=sLocation%>

unread,
Aug 8, 2003, 4:14:41 PM8/8/03
to
No, I don't believe this is possible. Msgbox does not allow that in any
implementation of VB*, afaik.

Ray at work

"Brian D'Altilio" <bdal...@yahoo.com> wrote in message
news:e4cXFheX...@TK2MSFTNGP09.phx.gbl...

Mythran

unread,
Aug 8, 2003, 5:16:46 PM8/8/03
to

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:%23S7f0me...@TK2MSFTNGP09.phx.gbl...

> No, I don't believe this is possible. Msgbox does not allow that in any
> implementation of VB*, afaik.
>
> Ray at work
>

Although, you can "fake" it by creating an ie window **wink**

Mythran


Brian D'Altilio

unread,
Aug 11, 2003, 9:18:21 AM8/11/03
to
Ok, thanks.

How would I go about doing that? I am trying to put it on a CD and I
don't want to ask if it should run from it current location like the
code below would when you click the button. I just want it to run.

<HTML>
<H1><TITLE>SomeTitle</TITLE></H1>
<BODY>
<A HREF="c:\winnt\system32\calc.exe"> Use the calculator </A>
</BODY>
</HTML>

thanks!

Brian

Mythran

unread,
Aug 11, 2003, 4:18:56 PM8/11/03
to
Use a vbscript file (or Wsh, your preference). Have the vbscript launch an IE
window CreateObject("InternetExplorer.Application"). From there, display the
html page to view, it shouldn't ask you from there. Maybe it would..hmm, have
the html page set a public property or variable that can be accessed from the
script and then have the script do what needs to be done (copy, move, et cetera)
based on the value of the variable.

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/dhtml_reference_entry.asp

Watch for the wrap above.

The posted link should help you with the DHTML stuff for making variables public
(or input elements hidden) then you can access them from the script :)

Mythran


Mythran

unread,
Aug 11, 2003, 4:18:56 PM8/11/03
to
0 new messages