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

How to search word in a richtextbox?

Hi,

Is there a quick easy way to search a text for words in richtextbox?

I would like to make it work as a word document, as the having Find, Find
Next by right click the richtextbox. THe words will be highlighted and the
focus wil move to that part of ricktextbox after each search.

Any suggestions?
Thanks a lot

Chris
Nov 16 '05 #1
1 2506
Hi Chris
you have the text property of the RichTextBox that is a string . You can
use the IndexOf function of that string to see if the sring you are looking
for exit in that text or not.
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC

Nov 16 '05 #2

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

Similar topics

2
by: kumar r | last post by:
Hey Guys, I am trying to develop an application, where people can open and edit word documents and RichTextFiles. I am using RichTextBox for editing.., but I am unable to figure out how to open...
2
by: Ludovic SOEUR | last post by:
Suppose I have a .Net C# Winforms App with a RichTextBox control and I want to provide an option for the user to open the Rtf in Word, edit it in Word and get the edited value back to my C# app...
3
by: Jeff Haumesser | last post by:
Does anyone know a way to display RTF text in a word document? I have RTF text from a dataset, and wish to display the text Formatted in a Word document. The problem is that the format codes are...
3
by: sss024 | last post by:
Word document viewing in RichTextBox control
0
by: njuneardave | last post by:
This line of code will make the Find method search for a search key in a given range if you search from top to bottom: m_form.richTextBox1.Find(searchKey, searchDownAreaStart, searchDownAreaEnd,...
4
by: fAnSKyer | last post by:
very same as Microsoft Word word correction, or like Gmail's word correction, if you choose a word, it gives you several candidate and if none is okay, user can type one. I want develop it in...
0
by: chris | last post by:
i use RichTextBox to develop a simple notepad, now i want to implement a function: when click on a word, the font name and size of the word will be displayed in statusbar. i know the...
5
parkavi
by: parkavi | last post by:
We are working on a VB.NET windows application where our customer has a requirement to have Word Style Editor. Therefore we are using RichTextBox . But we have the following issues with the...
5
by: BarryM | last post by:
could somebody please tell me how to search a rich textbox for a particular word and then highlight that word in the rich textbox ; ; on the form theres are textbox called txtsearch, a button...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.