473,657 Members | 2,806 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Bug in Rich Text Box control tab setting array?

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 rtb.SelectionTa bs(5) 'to set 5 tabs
rtb.SelectionTa bs(0) = 100 'pixels
rtb.SelectionTa bs(1) = 200 'etc
....
This has no effect on the selected text. Further I can
immediatly read the contents of the SelectionTabs() array
and all value remain zero. I have struggled for about 2
weeks with every permutation of code and Rtb setting I
can dream up and have not found a way to set the tabs.
The previous VB6 Rich text box control worked fine. Is
this a new bug?

Nov 20 '05 #1
2 6124
* "Jim Haynes" <an*******@disc ussions.microso ft.com> scripsit:
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 rtb.SelectionTa bs(5) 'to set 5 tabs
rtb.SelectionTa bs(0) = 100 'pixels
rtb.SelectionTa bs(1) = 200 'etc
...
This has no effect on the selected text. Further I can
immediatly read the contents of the SelectionTabs() array
and all value remain zero. I have struggled for about 2
weeks with every permutation of code and Rtb setting I
can dream up and have not found a way to set the tabs.
The previous VB6 Rich text box control worked fine. Is
this a new bug?


This code works fine for me (VS.NET 2003):

\\\
With Me.RichTextBox1
.SelectAll()
.SelectionTabs = New Integer() {100, 300, 400}
End With
///

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #2
Thanks,

That works fine for me on VB.net 2002 as well.
Apparently it was a matter of understanding when I
actually have a "New" instance of the selectionTabs()
array.
-----Original Message-----
* "Jim Haynes" <an*******@disc ussions.microso ft.com>

scripsit:
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 rtb.SelectionTa bs(5) 'to set 5 tabs
rtb.SelectionTa bs(0) = 100 'pixels
rtb.SelectionTa bs(1) = 200 'etc
...
This has no effect on the selected text. Further I can immediatly read the contents of the SelectionTabs() array and all value remain zero. I have struggled for about 2 weeks with every permutation of code and Rtb setting I
can dream up and have not found a way to set the tabs. The previous VB6 Rich text box control worked fine. Is
this a new bug?


This code works fine for me (VS.NET 2003):

\\\
With Me.RichTextBox1
.SelectAll()
.SelectionTabs = New Integer() {100, 300, 400}
End With
///

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
.

Nov 20 '05 #3

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

Similar topics

0
2564
by: magician | last post by:
Hi Im having trouble setting the bold and 'not' bold properties in a rich text control. All the text in the control is entered through code and the bold property is different for different sections. I am using the selstart and sellength to set the selection then either selbold=true or false to set the bold. I have debug.printed the selections and true false to see if it is getting the correct selections and true or false.. but it is no...
0
2353
by: KevenL | last post by:
I'm trying to insert unicode characters into a VB Rich Text control (in this case, the Full Block character (U+2588 on the character map). If I copy and paste from the character map, the character displays correctly. However, how would I insert this character from code? If I copy from the Character Map into the VB Editor, the character is converted to a "?", and sinct it's unicode instead of ASCII, I can't use chr$(). Any suggestions?
1
2820
by: MisterJ | last post by:
Here is the situation: I am attempting to reposition a rich text control within a frame in a running vb6 program. What I want to do is to click on the text box then drag it to a new position. What happens is that the text box has a mind of its own and goes elsewhere.
1
1166
by: Scott Simons | last post by:
Does anyone know what happened to the freetextbox.com website. I'm looking for a rich text control that comes with the source that is reasonably priced. Thanks, Scott
4
2760
by: David Davis | last post by:
Woll2Woll has a product for Delphi called Infopower which has a rtf control with a built-in word processor. Does anyone know of a third party control that has the same capabilities. I don't have the experience in Dot Net to write one myself. -- Thanks David Davis
2
2573
by: tlyczko | last post by:
Hello, I'm experimenting with Stephen Lebans' Rich Text Control for doing RTF data entry into a memo field. I imported the table, form, toobar, and modules from the A2k version into an A2k3 DB. Then I edited a sample table record using the sample form provided, then closed Access. Then I could not re-open the MDB containing these items, nor any other
2
1808
by: John | last post by:
Hi How can I add some txt in red and other in grey to a rich text control? Thanks Regards
1
6762
by: Randy Shore | last post by:
I have run into a problem with the new rich text control in Access 2007. It seems that you can only choose from 6 preset font sizes when entering or editing text. The sizes are 8,10,12,14,18,24,36, which as I understand it, corresponds to Font Size=1 through Font Size = 6 in HTML. Is there any way around this. I have a need to display the data at 46pt, and also to make fine discriminations in font size depending on the data displayed. ...
0
2585
by: banani | last post by:
Hi Experts, I have couple of questions.. 1) Does anybody know if Reporting Services 2008 will support Rich Text control so that it will interpret html tags? 2) Any idea when Reporting Services 2008 is going to be released? 3) We are using Reporting Services 2005..We have a Matrix report... The problem is the width of the table or the columns do not grow to fit the page. Since the number of the columns is dynamic if it has 2 cols I...
0
1096
by: Wayne | last post by:
In Access 2007 is there any workaround or fix for the bug in rich text boxes on subforms that causes the mini formatting toolbar to not function?
1
8509
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8610
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7345
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6174
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5636
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4327
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2735
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1967
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.