Jeffery
Wed Dec 05 08:42:17 PST 2007
There is an entire chapter on creating HTAs in Advanced VBScript for Windows
Administrators (Microsoft Press). You can find some HTAs in the Script
Vault at ScriptingAnswers.com as well.
--
Jeffery Hicks
Microsoft PowerShell MVP
http://www.scriptinganswers.com
http://www.powershellcommunity.org
Now Available: WSH and VBScript Core: TFM
Coming Soon: Windows PowerShell: TFM 2nd Ed.
"McKirahan" <News@McKirahan.com> wrote in message
news:kMadnXe8mv6kKsvanZ2dnUVZ_hudnZ2d@comcast.com...
> "ncowboy" <ncowboy@gmail.com> wrote in message
> news:42a435a9-c811-4950-b886-63e8702c3db3@d21g2000prf.googlegroups.com...
>> Can i use vbscript to create a windows form which includes some
>> checkboxes,textboxes and buttones?
>
> Yes -- it's called an HTA (HTML Application).
>
> Create a Web page but use the extension "hta" not ".htm".
> Then add all the VBScript you want between
> <script type="text/vbscript"> and </script>
>
> Google "HTML Application" for more information.
>
> HTML Application
>
http://en.wikipedia.org/wiki/HTML_Application
>
> "From Wikipedia, the free encyclopedia
>
> An HTML Application (HTA) is a Microsoft Windows application
> written with HTML and Dynamic HTML. The ability to write HTAs
> was introduced with Microsoft Internet Explorer 4.0.
>
> HTAs can be made from regular HTML files by simply changing the
> file extension to .hta. An HTA runs as a fully trusted application and
> therefore has more privileges than a regular HTML file, which is
> confined to the security model of the web browser."
>
> Introduction to HTML Applications (HTAs)
>
http://msdn2.microsoft.com/en-us/library/ms536496.aspx
>
> The Hey, Scripting Guy! Archive: HTML Application (HTAs)
>
http://www.microsoft.com/technet/scriptcenter/resources/qanda/htas.mspx
>
>