Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!news-out.readnews.com!transit3.readnews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: BTIS Jeff Newsgroups: comp.lang.basic.visual.misc Subject: Re: RichEdit control question Date: Tue, 11 Oct 2011 08:17:13 -0700 (PDT) Organization: http://groups.google.com Lines: 32 Message-ID: <9357790.12.1318346233553.JavaMail.geo-discussion-forums@vbmh5> References: Reply-To: comp.lang.basic.visual.misc@googlegroups.com NNTP-Posting-Host: 96.57.66.34 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1318346234 24921 127.0.0.1 (11 Oct 2011 15:17:14 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 11 Oct 2011 15:17:14 +0000 (UTC) Cc: jeff@btis.com In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=96.57.66.34; posting-account=WbFC1gkAAABXZCYygqyjHgU452Mo_GPX User-Agent: G2/1.0 X-Google-Web-Client: true Xref: x330-a1.tempe.blueboxinc.net comp.lang.basic.visual.misc:473 On Monday, October 10, 2011 5:41:43 PM UTC-4, Kalkidas wrote: > I need to have a RichTextBox be able to toggle Hidden text off and on. > MSWORD does this by pressing shift+ctrl+*. > > Obviously I'll have to use unmanaged code and the RichEdit control. > Anyone know how to do this? > > I'm using VB 2010 and Win7. I may be mistaken ( please correct me if I am ) but I don't think that the Microsoft RichTextbox supports toggling visibility of hidden Text. If not you may want to look at our ALLText component. With ALLText you can write ' Set up content including some hidden text ALLText.FText = "This is \v1 hidden \v0 text" ' Don't show the text marked as hidden atx451.ShowHidden = false ' Show all the txt - including the text marked as hidden atx451.ShowHidden = true Obviously you can use this code to toggle the visibility in a button click or in response to the keyboard ( by trapping KeyDown events) Note that ALLText is an OCX/ ActiveX component ( not .NET ) but it is supported in VB 2010 applications . For further details see www.bennet-tec.com/btproducts/ALLText or for questions, you can post to http://www.bennet-tec.com/scripts/ttcgi.exe?command=SoloSubmitScreen&databaseid=2 * Please include a copy of this message with any reply Jeff Bennet-Tec Information Systems