Export (0) Print
Expand All
GUI
Expand Minimize
3 out of 3 rated this helpful - Rate this topic

Creating Your Own HTAs

Try It Yourself: Add a Multi-Line Text Box to an HTA


Shows how to add a multi-line text box to an HTA. This is the answer to a Try It Yourself exercise found in Part 2 of the introductory tutorial on creating HTAs.



<html>
<head>
<title>HTA Test</title>
<HTA:APPLICATION 
     ID="objTest" 
     APPLICATIONNAME="HTA Test"
     SCROLL="yes"
     SINGLEINSTANCE="yes"
>
</head>

<SCRIPT LANGUAGE="VBScript">

    Sub TestSub
        Msgbox ScriptArea.Value
    End Sub

</SCRIPT>

<body>

  <textarea name="ScriptArea" rows=5 cols=70></textarea><p>
  <input id=runbutton  type="button" value="Run Script" name="run_button"  onClick="TestSub">

</body>



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.