473,382 Members | 1,353 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,382 software developers and data experts.

Remove text in richtextbox between specified words/tags

Mague
137 100+
Is it possible to get rid of text in a richtextbox with a selected two words for eg.

<title> i want to get rid of these tags and the text within </title>

if it is how?

Thanks mague
Jul 30 '07 #1
4 2062
hariharanmca
1,977 1GB
Is it possible to get rid of text in a richtextbox with a selected two words for eg.

<title> i want to get rid of these tags and the text within </title>

if it is how?

Thanks mague

Mague can you explain littlebit more? and hearafter give appropriate topic.
Jul 30 '07 #2
Mague
137 100+
Well. Im trying to get a website up. This website has some of my software and friends graphics. We are a group called flume. We are all 13 so its not going to be big just for ex. Anyways i got a bit of topic. Im creating a webserver of my computer which will hook up to a domain. I want it so in vb.net i can edit sertain sections of the code. eg In the same page but different little sections. So to do this i will need to take out things like
<title> dfgiojdfoigjdfoigj </title>
this will need to take out the tags and the dfgiodfgdfgdjdfg stuff.

I have vb.net and vb6 but i would perfer in vb.net seing i dont really know vb6.
Jul 30 '07 #3
hariharanmca
1,977 1GB
Well. Im trying to get a website up. This website has some of my software and friends graphics. We are a group called flume. We are all 13 so its not going to be big just for ex. Anyways i got a bit of topic. Im creating a webserver of my computer which will hook up to a domain. I want it so in vb.net i can edit sertain sections of the code. eg In the same page but different little sections. So to do this i will need to take out things like
<title> dfgiojdfoigjdfoigj </title>
this will need to take out the tags and the dfgiodfgdfgdjdfg stuff.

I have vb.net and vb6 but i would perfer in vb.net seing i dont really know vb6.
already there is a issue which had been cleared as enough.

Just Click This
Jul 30 '07 #4
Killer42
8,435 Expert 8TB
You should be able to do it fairly simply by using something like the Instr() function to find the strings, then setting the RTB's .SelStart and .SelLength properties to select the text in that range. Then just set .SelText (or possibly .SelRtf) to empty.

You might also want to investigate the RTB's Span method - from the doco, it sounds relevant.
Jul 30 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: kangoo | last post by:
Hi, I'm trying to remove the last charater in a richTextBox. I though richTextBox.Text.Remove(richTextBox.Text.length-1, 1); would work, but it does nothing (eg richTextBox.Text += "some new...
1
by: Able | last post by:
Dear friends It exist a number of various apps displaying multiple selected text. Normally every search function displays all hits as selected text in some sort of text-control. Do somebody know...
8
by: Paul | last post by:
Hi, My VB is very rusty I'm afraid! What would be the most efficient way to remove the following ASCII characters from a string? à è ì ò ù À È Ì Ò Ù á é í ó ú ý Á É Í Ó Ú Ý â ê î ô û Â Ê Î Ô...
9
by: =?Utf-8?B?QnJpYW4gQ29vaw==?= | last post by:
I want to open a text file and format it into a specific line and then apply color to a specific location of the text and then display it in a RichTextBox after all of this is done. I can do all...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.