473,395 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Change text format

Hello,

I'm dumping a bunch of data from an array into a text box. How can (if it's
possible) I change the appearance of certain lines in order to present a
better display as I iterate through the array? i.e. I want certain lines to
have a larger font size, bolding, italic etc. but not the entire text box.

Thanks

Gord
Jul 17 '05 #1
2 12376
> I'm dumping a bunch of data from an array into a text box. How can
(if it's
possible) I change the appearance of certain lines in order to present a better display as I iterate through the array? i.e. I want certain lines to have a larger font size, bolding, italic etc. but not the entire text

box.

You have to use a RichTextBox, not a standard TextBox. You will be
making use of the various SelXXX properties. To put a RichTextBox on
your form, click Project/Components on VB's menu and select Microsoft
Rich Textbox Control from the list that gets displayed.

Rick - MVP

Jul 17 '05 #2
Thanks Rick,

I should have mentioned that the box I'm using is a rich text box already.
However, now I can burrow into my VB reference books on using the SEL
properties.

Thanks

Gord

"Rick Rothstein" <ri************@NOSPAMcomcast.net> wrote in message
news:Zf********************@comcast.com...
I'm dumping a bunch of data from an array into a text box. How can

(if it's
possible) I change the appearance of certain lines in order to present

a
better display as I iterate through the array? i.e. I want certain

lines to
have a larger font size, bolding, italic etc. but not the entire text

box.

You have to use a RichTextBox, not a standard TextBox. You will be
making use of the various SelXXX properties. To put a RichTextBox on
your form, click Project/Components on VB's menu and select Microsoft
Rich Textbox Control from the list that gets displayed.

Rick - MVP

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Richard Cornford | last post by:
For the last couple of months I have been trying to get the next round of updates to the FAQ underway and been being thwarted by a heavy workload (the project I am working on has to be finished an...
4
by: Dwight | last post by:
I need to change the colour of text values within a table. For example "Software" being red, "Lab Software" blue etc. To change colour of number values simply, 1, entered into the format section...
4
by: Du | last post by:
I want to format the text within my richtextbox. However I have large amount of text to change, simply using richtextbox.select and format is not pratical. How do I change text format using...
1
by: Julius Fenata | last post by:
Dear all, I need help to change my item-template value format... Here is my case, I have a datagrid, with 'SubjectPrice' field, and when the grid displayed, my 'SubjectPrice' field displayed...
11
by: Dixie | last post by:
How can I programatically, take some Date/Time fields present in a table in the current database and change their type to text? dixie
13
by: sonald | last post by:
Hi, Can anybody tell me how to change the text delimiter in FastCSV Parser ? By default the text delimiter is double quotes(") I want to change it to anything else... say a pipe (|).. can anyone...
4
by: Orchid | last post by:
How can I change a Date datatype to a Number datatype? For example, I want a date 10/31/2006 to show 1031 as Number datatype. But I don't want it becomes 39021. What formula should I use? ...
7
by: =?Utf-8?B?QnJpYW4gQ29vaw==?= | last post by:
I want to change the font color and weight at a specific position in the text. I am not sure where or what I need to do. It will be at position 155/156 from the left on each line. Here is the...
3
by: Bface | last post by:
Hi all, Hope everyone had a good holiday. I am having a difficult time changing the date format of a field from Excel. I have never had this problem before. I link the excel spreadsheet to my DB,...
0
by: =?Utf-8?B?QXNoaXNoIFNheGVuYQ==?= | last post by:
How to change text box format from text to date format or currency format. I tried from property window but same was not change. I want that if I write in text box 1000 and press tab then format...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.