Solved

ELUA Textbox formatting?

Posted on 2006-06-16
2
243 Views
Last Modified: 2010-04-17
I'm using a simple form and textbox to display my EULA.

All is well excecpt the text formating is one large word-wrap style.

I don't want to import a text file to prevent end users from stealing the agreement and using it elsewhere.....

Q. How can I present the text in a nice readable form.

I'm currently using this code:

textBox1.Text = " END USER LICENSE AGREEMENT "+
                     // I would like a space here and other places too........//
                    " NOTICE: THIS SOFTWARE END USER LICENSE AGREEMENT ('EULA') IS A LEGAL AND BINDING AGREEMENT BETWEEN "+
                    " ME AND YOU ..............."+ BY SELECTING “I AGREE’ AND CLICKING THE.......... ";
                   
0
Comment
Question by:kvnsdr
2 Comments
 
LVL 1

Expert Comment

by:kwebster7327
ID: 16923165
For VB, you can include the text in a .BAS built into your program. Just load up the string in there and you're off. When you load up the screen, stick in vbCrLf's and vbTab's to get the format right.

strEula = " END USER LICENSE AGREEMENT " & vbCrLf & vbCrLf & _
                    " NOTICE: THIS SOFTWARE END USER LICENSE AGREEMENT ('EULA') IS A LEGAL AND BINDING AGREEMENT BETWEEN " & _
...

Hint: Use a multiline label (my pref), or a disabled textbox. I believe the MS standard font is Tahoma, but don't quote me on that.
0
 
LVL 32

Accepted Solution

by:
jhance earned 250 total points
ID: 16923798
Most often these things are displayed in the RichTextBox control.  You can write and format the text using MS Word or WordPad and then save it in RTF.  Then you can just display the RTF in the RichTextBox and it will be nicely formatted.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A short article about problems I had with the new location API and permissions in Marshmallow
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question