473,399 Members | 2,478 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,399 software developers and data experts.

RTF and selectiontabs

I am trying to set the tabs by code in a richtextbox.
according to the documentation it says select the text and
then you can set the tabs using the selectiontabs property.
(see below)
i do that and and i get an index out of bounds exception.
I test for the length of the array and I get 560.
Itry to test for the individual members of the array and
I get 0

what gives?

Thanks AL

This property enables you to obtain an array that contains
the spacing for each tab in the current text selection
within the RichTextBox control. You can then use this
property to adjust the size of each tab within the text
selection. For example, if you want to adjust the tab
space within the document, you can select the entire
document and obtain the list of tab spaces using the
SelectionTabs property. You can then adjust them to new
values and reassign them to this property.
Nov 20 '05 #1
1 2104
Hi Albert,

Could you post some code showing what you are doing?

Regards,
Fergus
Nov 20 '05 #2

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

Similar topics

2
by: Jim Haynes | last post by:
I cannot set the tab array for the Rich Text Box control. After I have text in the control, I try the following where rtb is the name of the rich text box control: rtb.selectall() Redim...
12
by: Just Me | last post by:
I can't seem to get the one-line equivalent of this: Dim tmp() As Integer = {100} HistoryRichTextBox.SelectionTabs = tmp This is a VB6 conversion. Is that still the way to do it?
0
by: Matt | last post by:
This took way to long to figure out - now that I have it working I thought I would share with the group. I've seen tons of posts with very little good answers on this seemingly simple thing that...
2
by: Ed Bitzer | last post by:
Appreciate a lead to specifying where the tab stop is (only need one) in a richtextbox. Use to be able to use an API with VB5. Ed
4
by: Rich | last post by:
I have 2 arrays of data that I need to output to a textbox. Pseudocode here For Each s In arr1 txt1.SelectedText = s & "{0}" & arr2(i) i += 1 Next Even though the values in arr1 may have...
4
by: Stanley | last post by:
Hi all! Can somebody tell me how to customize the tab stop position in a rich text box? Just like we do in MS Word by clicking the ruler! I've been searching the web but I can't find the answer!...
3
by: amruta | last post by:
I have the following statements TextBox19.Text &= "ID" & ControlChars.Tab TextBox19.Text &= "Requirement Name" & ControlChars.Tab TextBox19.Text &= "Status" & ControlChars.Tab TextBox19.Text &=...
3
by: mabond | last post by:
Hi all I have an rtf control on my form. The control is populated with text from an string array created as the application runs. The code to populate the rtf control is as follows For l = 0...
0
by: Cub71 | last post by:
I have a richtextbox that I would like to fill with some lines, and they have to be aligned with tab stops. I think I have set the tab stops, but I can't find any info on how to tell the...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.