Find The Longest Sentence And The Average Sentence Length In A Textbox?
May 22, 2011
After I input a few sentences in a textbox, I need to find the longest sentence in the textbox by clicking a button. The longest sentence should be displayed in a MessageBox.
View 2 Replies
ADVERTISEMENT
Apr 26, 2011
having problems with my code it is showing wrong values on the shortest , longest and average sentence the values are not corresponding with my sentences.I need help this my code:
[Code]...
View 11 Replies
May 21, 2011
Anyone can give the coding for finding the longest & average length?(displayed in a messagebox)
View 1 Replies
Apr 25, 2011
what is the code for finding the shortest,average and longest sentence form the text box
View 4 Replies
May 2, 2009
I was created data bound grid with 5 colmns. And two cmds buttons and entered 200 data in all colmns. In the colm-5 text enter three or four line sentence like Seeta Rama Rao The following code to find the data of the rows and colmns.
[Code]...
View 2 Replies
Jun 22, 2010
was doing programming and ran into this assignment. It says: create a "textbox1" to let the user enter a sentence. Then create a "textbox2" to let the user enter the text they want to remove. Then create a "textbox3" to let the user enter the word they want to replace.
For example, I enter "I love cookies very much" in "textbox1".
For "textbox2", I enter "cookies".
For "textbox3", I enter "eggs".
[code].....
View 6 Replies
Apr 18, 2011
I have a Ms-word document in a particular Location. I need to open the document find a particular sentence and replace my sentence using vb.net....
View 1 Replies
Sep 2, 2009
I'm looking to use a RegularExpress to find a specific pattern for character within a sentence.I'm look to find a any Word that start with '_', that contain only upper case character with number and with like
'_ABCF'
'_EEE1'
But not
'ABC_DE'
until now I've found "^_([A-Z]|[0-9])*", but this pattern do not seam to work within a complete sentence.
View 2 Replies
Mar 11, 2009
I'm making a project and the project consists in: Go to a http, take the html code to a .txt then take out the html tags, and rewrite the .txt with the code without the HTML tags. I've done it all with this code
Imports System.IO
Public Class Form1
Dim var_semtags As String
Dim var_codhtml As String
[Code]...
View 3 Replies
Feb 6, 2010
I am trying to make a program that whenever you click a button, a random sentence will appear in the textbox.
View 3 Replies
Apr 10, 2012
location of character in mixing laguage (e.g. farsi & english) sentence are different in memory and display , you can check it with point() all Instructions as LEFT ,RIGHT ,MID not work correctly when using it on the mix language sentence also GetPositionFromCharIndex(I) also not get position of the char user see on display...i need to have exact location point() of display character (from left or right side of text box)
View 1 Replies
Jan 9, 2012
I would like to change the case in a Textbox to look like a proper sentence, so the first letter would be capitalised and all following letters would be in lower case.
For example:
original text: "this IS My Text"
output text: "This is my text"
It is easy to change texts/strings between upper and lower case...
vb
TextBox1.Text = TextBox1.Text.ToLower
TextBox1.Text = TextBox1.Text.ToUpper
... but how can I apply a sentence case?
View 10 Replies
Jan 18, 2012
Now, when I say "word check" I don't actually mean spell check or something like that, I just couldn't find a good 1 or 2 words explanation. (I use Visual Basic 2010). Here is what am I interested in: For example I want to make answering bot and when I write a sentence in a textbox how can I check does that sentence contain one specific word, for example if I write: "I feel bad", how do I check does that sentence contain word "bad" or word "feel".
View 2 Replies
Nov 4, 2010
I have a Visual Basic Program that I am trying to create for a college course. I have a few problems at this point.When the text from the string is added to the word box on the right, when it reads the text file it puts the last word of each sentence and the first word in the next sentence together and creates one word.I don't understand how in the loop i can keep track of instances of words and count them in array.Then display the words in the word box on the right with a - and then number of instances found.
View 3 Replies
Jan 18, 2012
I want my TextBox to make the text i enter as Sentence Case(ProperCase).. but i dont want to write any code in an event like Lost Focus or KeyPress
Just by default when ever a user enter or types in a textbox the first letter of every word should automatically converted into UpperCase
View 1 Replies
Oct 19, 2009
I am experienced with Visual Basic, and currently working on a project using VB 2008. I am struggling to come up with a code that compares one sentence to three other sentences. For the input could be a simple textbox and the output being the most probable sentence (and the probability if possible).
View 6 Replies
Apr 22, 2012
Is it possible that I enter some sentence in textbox1 and when click on button, I want application get each word of that sentence and later I will do what I want with them.
View 2 Replies
Oct 25, 2010
how to size up a sentences in a text. i mean for me sentence that which ends in a period(.). i have a text box and it has a couple of sentence i want the average size of the sentences used in a text..
View 1 Replies
Nov 15, 2011
I'm trying to create a program that allows the user to type multiple sentences and after he clicks the button the program will capatilize the first letter of each sentence. I have done this but the sentences must have a double space after the period to work. I want the program to work even if the user only uses a single space after the period. Here is the code I have so far.
Dim strString As String
Dim searchStrTxt As Integer
Dim strCmpare As String
[code].....
View 3 Replies
Oct 19, 2009
I am struggling to come up with a code that compares one sentence to three other sentences. For the input could be a simple textbox and the output being the most probable sentence (and the probability if possible).
View 3 Replies
Mar 10, 2011
The object is to have a user input a sentence and then count the number of s's and z's total are in the sentence. The counting must be done in a function procedure. Would this make use of the Index keyword?
View 11 Replies
Jan 18, 2010
how can I extract a certain words from a sentence input by user. For example, when a user enters "Jones born in 1965", the program will extract the words 'Jones, born, 1965' while eliminating the word 'in'.
View 2 Replies
Jun 22, 2010
I want to extract certain words from a sentence input by the user. For e.g., the user enters "Jones born in 1967" and the program will extract the words 'Jones, born and 1967' but will not extract the word 'in' and will print the extracted words out.
View 19 Replies
Aug 26, 2011
i am trying to make a program that gives the first 5 urls in google about a specific subject and then compares a sentence i enter in a text box with the content of the urls and give the name of the url that contains this sentence ..ive tried this
...
Private Sub btn1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn1.Click
WebBrowser1.Navigate("www.google.com")
[Code]....
View 1 Replies
Nov 28, 2011
why i cant get the right output for a palindrome sentence.
Public Class Form1
'declaring variables
Dim strword As String
[Code]....
View 8 Replies
Jul 19, 2011
How can I remove a certain string in a sentence ?
"10. testing"
how can I remove "10." using regex
View 4 Replies
May 14, 2012
I am trying to replace words in a sentence.
Code:
Public Function convert(ByVal sentence As String) As String
Dim conv As String = sentence
conv = Replace(conv, "I am ", "you are")
conv = Replace(conv, "I'm", "you are")
[code]....
This works to some degree but a word like "Mommy" becomes "Momyour". Or "mean" becomes "youan" How can I do this with full words only? I've tried putting spaces before and after within the quotes, but then any of the words that need changed at the beginning of a paragraph, don't change because there is no space at the beginning.
View 1 Replies
Sep 22, 2011
I want to -have a program that runs on a "Dim name as string variable" type then input a sentence into a textbox and have the program count the number of spaces and count the number of words or -write a program to enter a sentence. count the number of occurrences of each letter of the alphabet found in the sentence. I want it to include large paragraphs as well.
View 2 Replies
Oct 14, 2009
I am looking for a way to display a whole sentence if a word that Iam searchign for found in that sentence:Here is an example:
[Sun Aug 30 2009 04:01:12] Ping failed.
[Sat Aug 29 2009 04:01:10] Ping failed
[Fri Aug 28 2009 04:00:37] Ping failed
[code]....
View 4 Replies
Mar 17, 2011
I have like a three word expression: "Shut The Door" and I want to find it in a sentence. Since They are kind of separated by space?
View 6 Replies