You need to use tag as follows.
<p>
<label for="from">Your message:</label>
<br />
<textarea name="message" id="message" style="height: 200px; width: 1100px;" onclick="this.value=''">Enter text here...</textarea>
</p>
I hope this is what you are looking for.
Regards.
Answer from Phesto Mwakyusa on Stack OverflowHTML creating a text box for a form - Stack Overflow
how to make a message box that sends message to email?
.net - Is it possible to create a message box that shows html-contents? - Stack Overflow
html - Create message box - Stack Overflow
Videos
You need to use tag as follows.
<p>
<label for="from">Your message:</label>
<br />
<textarea name="message" id="message" style="height: 200px; width: 1100px;" onclick="this.value=''">Enter text here...</textarea>
</p>
I hope this is what you are looking for.
Regards.
You should use <textarea></textarea> instead of <input/>
So I know this is doable, but I'm having a hard time finding/creating a code for this?
a submit box like this: https://www.w3schools.com/html/html_forms.asp
but sends to email.
When I use "mailto:" it forwards to a form not secure page that has a send anyways option that opens up outlook. What I want is a simple message box where the message gets sent to my email.
Any help?
You could create your own Form class that hosts the WebBrowser control (or an RTF control) to display the formatted content. Just give it an interface (API) similar to MessageBox so you can use it much the same way (e.g., checking the user's Yes/No or Ok/Cancel/etc responses).
For the sizing, you would likely need to check the content being displayed and use some System.Drawing capabilities to get the size of the fonts/content for it. Then size your window accordingly and/or show and hide scrollbars so they're only shown when absolutely necessary.
I have just created and posted a product, HTML MessageBox, that solves exactly Mikael's problem. It's a drop-in replacement for the standard Windows API MessageBox call, that allows you to use bold, underline, and italic, and fonts. And it behaves like standard MessageBoxes, auto-sizing to the message, word wrapping etc. Plus, it's a small hand-coded control, that doesn't use a heavyweight IE window to display the HTML.
There are interfaces included in the product for calling it with the standard Windows API calling convention, or via COM, or from a .NET class. (Also PowerBuilder, because I originally created this to work in my own PowerBuilder app!)
It's at www.HTML-MessageBox.com.