[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


best way to display a long text

Posted on 2005-05-04
Medium Priority
Last Modified: 2012-06-27
hi you guys, please help me, I need to put a huge text(become from a diet) in a windows form, the text is allowed in a access database memo field, how can i display it with the proper format, and in a nice way?
any idea for me?
Tnxs a lot
Question by:Ernesto
LVL 38

Accepted Solution

PaulHews earned 750 total points
ID: 13931727
Put it in a text box and change the multiline property to true.  If the format is from a fixed width font, change the font, use the scrollbars property to add scrollbars, and if it's supposed to be read only, change the locked property to true.

Author Comment

ID: 13931740
ok I'm going to check it

Expert Comment

ID: 13931971
you can also is a rich text textbox
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

LVL 23

Expert Comment

ID: 13933626
Probably not really for allowing editing of the text but you can use a label if you want. The 2 suggestions above would prolly be better ones though because you can also alter the settings with regards to locking or disabling the controls to dis allow editing of the text :)
LVL 17

Expert Comment

ID: 13934389
On the text box set the locked property to try if you don't want user to edit.

Expert Comment

ID: 13934555
depending on how big it is the regulr text box will cut the text off. it just wont hold an extreamly larg amount of text. i would recommend the RichTextBox.
LVL 38

Expert Comment

ID: 13935707
> depending on how big it is the regulr text box

This is true, the text box will only hold 65535 characters before truncating.  Note that Excalibur_Software suggested the Rich Text Box first.

> Probably not really for allowing editing of the text but you can use a label if you want.
Gecko, the label does not have any scrolling capability, and would not be very useful for a large amount of text without a fair amount of code to fix that.  As your comments seem to indicate you realise this is a problem, why would you even suggest it?  It indicates to me that you are just here for the points and don't really care if the questioner gets the right answer... would you say that's true?  Don't take this the wrong way, but I've seen you post to a lot of questions where it was apparent to me that your comments would not be helpful.  
LVL 23

Expert Comment

ID: 13936111
I only suggested the label because he asked for "how can i display it with the proper format, and in a nice way? " and labels tend to look neater especially if you format the border to single outline and even if it did require more code to scroll in a label it would be worth it just for the simple fact that it would teach the asker more about visual basic :)

It's not about the points, I mean there are a lot of questions that I have answered that have only been worth 50 points and that didnt even phase me !

Besides I never once called myself an expert or a certified programmer and yes I am still learning ! I do however subcribe to questions which are out of my league at this point in time and that helps me quite a bit with regards to understanding certain things.
LVL 38

Expert Comment

ID: 13936794
Gecko, I don't think it would be appropriate for me to continue off topic here.  See

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

872 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