Solved

RichTextBox1 to RichTextBox2

Posted on 2015-02-01
3
58 Views
Last Modified: 2015-03-03
Hello ,
I am importing some informations in my Form_Load event to my RichTextBox1. My RichTextBox1 like this:

d..saffdsa.CATPart
asdas.fasf.CATProduct
asd.asdsad.CATPart
hfysafs.CATProduct

I mean it is going down like that.
What I want is that in the same order ı want to transform this informations to another RichtextBox2 like:

d..saffdsa.
asdas.fasf
asd.asdsad
hf.ysafs

I mean I dont want the suffix after last point  . My suffix is always finishinig .CATPart or .CATProduct.
How can I do this?
Thank you.
0
Comment
Question by:hakanogu
3 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 40582396
RichtextBox2.Rtf = RichtextBox1.Rtf.Replace("CATPart", "").Replace("CATProduct", "")
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 40641435
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question