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

how to find some specific words from a paragraphs and print them into a label

i want to find some specific words from a paragraph and print them into a label as suppose i have a paragraph:"madam I am Adam" and now i want to search "madam and Adam" from this parapgraph my code is as under
Expand|Select|Wrap|Line Numbers
  1. Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
  2.         Dim A(1) As Char
  3.         A(0) = " "
  4.         A(1) = ","
  5.         Dim B As String = RichTextBox1.Text
  6.         Dim x As String() = Nothing
  7.         Dim F As Array = {"SMUGGLING", "CROSSING", "INFILTRATION"}
  8.         x = B.Split(A)
  9.  
  10.         For Each F In x
  11.             Label1.Text += F.Contains(x) & ControlChars.NewLine
  12.         Next
  13.  
  14.     End Sub
my parapgraph in Richtextbox1 and i want to search words given in Dim F As Array{} my paragraph contains all theses words
please help me for this
Oct 24 '15 #1
0 1106

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

Similar topics

2
by: MLH | last post by:
When the DMV tells you they cannot determine ownership, you have three options. First, you can try to determine the last state of vehicle registration yourself. If you're successful, provide the NC...
5
by: akelly_image | last post by:
Okay, if anyone could toss me some idea's here, please bare with my noobish questions, I just picked up VB2005 Pro about a week ago. ( no prior VB at all ) Here's my issue.. I'm pulling...
1
by: sejal17 | last post by:
hello everyone, I have a problem to find a specific words from url.How can we find specific words from url?pls answer me as soon as possible.......
6
by: yappy77 | last post by:
I am using code for printing a label for a specific record from the following website: ** Edit ** Removed link When I try to execute using the print button on my form, I get an error (see...
3
by: Desitech | last post by:
I have an access database with part numbers. I want a user to be able to print a bar code label I crated in bartender to print for the record they choose. The label is connected to the database and...
1
by: Marco Langes | last post by:
Hello, first of all: Excuse me for some bad English you might experience during the reading of this. So I made this form with an textarea, people can write a comment in here but I wanted to...
0
by: steve depp | last post by:
ooking for an application that will allow me to find specific DNN websites. example: need to find all sites that are DNN and are NON-Profit Organizations or all DNN sites that are Hospitals, etc. A...
16
by: DanicaDear | last post by:
I have a perfectly working form and report, so I don't have a problem (for a change). I desire to take something slick and make it slicker, but I don't know how. I have a form set up which you...
1
by: otto531 | last post by:
I need to take two files and print the top most frequent words they have in common as well as their combined(sum) frequencies. def mostFrequent(word,frequency,n): my_list =...
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: 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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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...
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...

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.