Displaying formatted text in a text box control.

Visual Basic


  • 1. Display TIF and PDF in VB.NET
    Nothing fancy, I just want a control to display PDF and TIFF files in VB, and perhaps let me zoom in and out of the image and scroll around. I don't need to edit or do anything complex, just view the stuff. Surely there is a built-in (i.e. FREE) control that will let me do this? I am aware of the Acrobat Viewer control that you get when you install Acrobat Viewer on your PC, but it doesn't cope with TIFFs. Is it possible to use the Web Browser control to do this somehow? I tried but with no success. Any help appreciated! -- Andy, MCDBA
  • 2. File Name and Path for Common Dialog Control
    Does anyone have an example of a parsing routine that returns the File Name and File Path from the Common Dialog Control? Thanks!
  • 3. Print PictureBox to selected Printer
    Hi How can I send a PictureBox, that serves as container for several other PictureBoxes, to a selected printer, that is not Windows Default-Printer? -- Gruesse, Christoph Rio Riay Riayo - Gordon Sumner, 1979
  • 4. Passing parameter to DataEnvironment
    Hi, Is it possible to pass parameter to a dataenvironment? I want it to execute a SQL query, but the query is builded using the SQL builder in the dataenvironment. I want that rsMyRecordset being made on different table that I specify. DataEnvironment1.rsMyRecordset.RecordCount Something like a "SELECT * FROM " & strMyTable executed in the DataEnvironment1.rsMyRecordset Can this be done? Thanks you very much Marty
  • 5. Checkbox and images for a listview?
    Hi all, I am trying to write an inventory program for our office. I am using a listview with the style of 3-Report. In the first column I am trying to put a checkbox and the second column I want a picture/thumbnail of the item. The next 9 columns will be descriptions, prices, quantities, etc of the item. How can I put in a check box and an image with the Report style of the listview? Thanks in advance, George

Re: Displaying formatted text in a text box control.

Postby MikeD » Sun, 28 Sep 2003 20:33:14 GMT

Yes, it sounds like you need to use a RichTextBox.  The standard textbox
doesn't support formatting.


Similar Threads:

1.Formatting Text in Rich Text Box Control

I have a rich textbox control and a long string of characters that I
will assign to it's .text property. How can I bold some characters and
apply italics to others?

2.Text box formatting moves text box

In normal Word usage I can change the text margins and size of a text box 
using the Format Text Box dialogue and the text box stays in the same 
position. However, when I try to do the same operations while recording a 
macro the text box gets moved to the top left corner of the page when I click 
on OK. How can I stop this happening, or at least edit the macro so the 
position of the text box is not altered?

Grateful for assistance.

3.Controlling text withing a text box control

I am looking for a text box control that will allow me to 
manipulate the look of individual words as they are typed 
into the text box.  The application calls for the word to 
be looked up, and checked against a list of keywords.  
Does anyone know of a control that will do this?



4.Displaying Text With Layout in a Text Box

Word 2000

I've built a user form that contains a text box.  I have the following code
to initialize a couple of values in the user form:

     Private Sub UserForm_Initialize()

         lblErrorMessage.Caption = ErrMsg
         tbDataClip.Value = cbDataClip

     End Sub

This basically works, but I've run into one small hitch that I can't seem to
solve.  I would like the text box to display data like the following example
(Note that this is a test record, and not live data):







     NAM/TEST, RECORD DOB/19700101

     SEX/M RAC/W    HGT/600 WGT/210     HAI/BRO



     LOCATED/20040812 MT025015Y TESTTOM EXTR

     MIN/W320581  DTE/20040812

     MRI 448220 IN: MTSF 6933 AT 12AUG2004 22:29:53 OUT: JLET00 537 AT


Instead, the text box is displaying the data as a single unbroken row, with
the paragraph markers visible in the data string.  I made sure that the Word
Wrap property of the text box is enabled.  Is there some way to pass the
data to the text box so that the text box displays the data with the layout

-- Tom

State of Montana
Department of Justice Help Desk

"Making the world a safer place."

5.Insert formatted text fro 'Rich Text Box'


I am looking for a way to insert formated text from the Rich Text Box to a 
Word Document That way the user will not have to Re-Format the text

Thank you in advance,
Shmuel Shulman

6. How to format text in a Text box using VBA code

7. Truncating rich text box text & keeping formatting

8. Search for text box formatted to Layout: In line with text

Return to Visual Basic


Who is online

Users browsing this forum: No registered users and 11 guest