Photo Gallery
Member List
Search
Calendars
FAQ
Ticket List
Log Out
Forums
Register
Login
My Profile
Inbox
Address Book
My Subscription
My Forums
HTA Script, center button on form?
Logged in as: Guest
arrSession:exec spGetSession 2,2,50263
Active Users: There are
0
members and
0
guests.
Users viewing this topic: none
Printable Version
All Forums
>>
[Scripting]
>>
WSH & Client Side VBScript
>> HTA Script, center button on form?
Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page:
[1]
Login
Message
<< Older Topic
Newer Topic >>
HTA Script, center button on form? -
8/2/2007 1:00:44 AM
simonc1970
Posts: 13
Score: 0
Joined: 5/7/2007
Status:
offline
Hello, can anyone tell me how to make the reboot button in my HTA script be centered on the from when it loads?
<html>
<head>
<title>Boehringer Ingelheim Image Download PE4</title>
<HTA:APPLICATION
ID="MapShare"
INNERBORDER="no"
BORDER="dialog"
MAXIMIZEBUTTON="no"
MINIMIZEBUTTON="no"
CONTEXTMENU="no"
APPLICATIONNAME="MapShare"
SCROLL="no"
SINGLEINSTANCE="yes"
WINDOWSTATE="maximize"
>
</head>
</Script><Body>
<P>
<body STYLE="font:13 pt arial; color:white;
filter:progid:DXImageTransform.Microsoft.Gradient
(GradientType=0, StartColorStr='#000000', EndColorStr='#0000FF')" onContextMenu="copyRight">
<BR>
<BR>
<input id=runbutton class="button" type="button" value="Reboot Computer" name="ok_button"
onClick="RunReboot">
 
</BODY>
Post #: 1
RE: HTA Script, center button on form? -
8/2/2007 1:23:02 AM
FerrariGuy
Posts: 3
Score: 0
Joined: 8/1/2007
Status:
offline
You could add center tags around your button:
<center><input id=runbutton class="button" type="button" value="Reboot Computer" name="ok_button"
onClick="RunReboot"> </center>
or you could put it in a table with <th align="center" valign="center"> button here</th> tags.
~Paul
(in reply to
simonc1970
)
Post #: 2
RE: HTA Script, center button on form? -
8/2/2007 3:32:47 AM
Rischip
Posts: 510
Score: 2
Joined: 3/26/2007
Status:
offline
This question was asked and answered here
http://www.visualbasicscript.com/m_50238/tm.htm
_____________________________
Rischip
Author of - The Grim Linker
(in reply to
simonc1970
)
Post #: 3
RE: HTA Script, center button on form? -
8/7/2007 7:21:49 AM
simonc1970
Posts: 13
Score: 0
Joined: 5/7/2007
Status:
offline
Thanks to all for the help, that worked fine
(in reply to
Rischip
)
Post #: 4
If you found our site useful please link to us
<a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>
.
All Forums
>>
[Scripting]
>>
WSH & Client Side VBScript
>> HTA Script, center button on form?
Page:
[1]
Jump to:
Select a Forum
All Forums
----------------------
[Welcome]
- - Forum Rules
- - Test Posting Messages
- - New Member Area/Introduction
[Scripting]
- - WSH & Client Side VBScript
- - WSH & Client Side VBScript Tutorial
- - Post a VBScript
- - Windows PowerShell
- - ASP
- - ASP.NET
- - Windows Script Components
[General Forum]
- - Other Programming/Scripting Languages
- - Suggestions & Feedback
- - Off-Topic Lounge
New Messages
No New Messages
Hot Topic w/ New Messages
Hot Topic w/o New Messages
Locked w/ New Messages
Locked w/o New Messages
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
Forum Software ©
ASPPlayground.NET
Advanced Edition
2.5.5 ANSI