Solved

ELUA Textbox formatting?

Posted on 2006-06-16
2
240 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
Comment Utility
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
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now