VS 2008 Defining Words In A Program?
Oct 28, 2009
So my latest project focuses on sending txt commands over from my cell phone to my email, which gets read by a program, that carries out the specified command. My latest command i want to implement, is being able to define words, and have it send me a txt back with the definition. Now I know how to send texts, and all of that stuff, but I have found it hard to find anything on defining words. At first, i tried to read websites, and simple redirect a webpage to google definitions, but that led me nowhere.
View 1 Replies
ADVERTISEMENT
Aug 13, 2011
If at all possible, how can my app detect the number, physical location, and size/resolution of monitors in use so as to define the program's parameters? Secondly, I have created a stopwatch variable ("Count"). I can't seem to get it to function properly unless using full seconds. In the following code, I have tried to use a fraction of a second (like .5) and using "count.elapsed.milliseconds = 500" and the program doesn't act like the code is even there...
Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If count.Elapsed.Seconds = 1 Then
Run()
End If
End Sub
View 15 Replies
Feb 15, 2009
Anyway, I'm a teacher and am writing a program that simply shows kids a word on a flashcard. There are 2 buttons, 1 to read the word and 1 to go to a new work. There are going to be 300 words. Really I'm just testing it right here. What I want to know is should I be inputting all the words right into the code like I did with "hi" and "not 1" (Don't ask. those are just the 2 random words I picked to test this out with). OR is there a better way (maybe somehow to type all the words on a text file and have the program randomly pull one of them (I don't know how to do this).
Here is the code so far:
Public Class Form1
Dim word
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[CODE]...
View 2 Replies
Nov 30, 2009
I have this requirement in my app. I need to define a week, so for example, I have a GameWeek table. it has weekid(PK),description column. Then I have a GameWeekDay table which has an ID,WeekID (fk to above table), GameDate, isValid (bit field). So once I create a week, I need to select valid days for that week. so I will have a checkbox column for a user to click a day. and on saving, I will save the Date and the checkbox value to my GameWeekDay table. What I need is a clever UI design.
View 2 Replies
Jun 13, 2012
so I want to build an application that will send words to another program. The use is that I have call of duty world at war, and I want to be able to send the game the text "`sf_usenoammo1" which is a cheat code for unlimited ammo. I searched around and was told to look into the "send keys" which looks promising but I still don't know how to use them, any ideas on how to send the info and select the focus to the open program would be awesome.
View 2 Replies
Apr 20, 2009
How would I call like notepad and tell it to write words in it? E.g. When I click on button1 it opens notepad.exe and writes "hello word" in it.
View 12 Replies
Oct 21, 2009
I have a list box that loads data from MS ACCESS but i want to filer the words.[code]...
View 1 Replies
Jul 7, 2010
How would I output a sentence with VB.NET?
Example: Your program and Internet Explorer are open, your program outputs [URL] and presses "{ENTER}", and it will go to the page.
Example: An auto-talking bot for MSN.
View 1 Replies
Jan 25, 2011
program description:its a research paper editor and report builder program. i need to replace desired words with all blank spaces in the program
[Code]...
When i executed this program everything works fine.but all the blankspaces are replaced by only one word.
how should i get every individual blank space replaced by individual words.i mean i need to get every blank space in my research paper is replaced by different words
View 3 Replies
Aug 11, 2009
I've got 2 RTB one is for input of text and one is output.The output one needs to read the words from the input and display it alphabetically and with their line numbers.I have partly done it and it currently reads it but here is my problem When the words are outputted let say for example there are 2 words the same on the same line e.g the word 'you' appears twice on line one,at the moment its coming up like this
[Code]...
View 18 Replies
Oct 24, 2010
My "Learn Welsh" application is now near completion, I only have a few things left to add / fix then I will share it with the world. Here's a screenshot of it so far :
As you can see by the picture above, I have created a simple feature in my application to pronounce letters from a word to assist users to learn the welsh alphabet. What I would really like to do is make the program pronounce full words. I already know how to make use of the system.speech reference in vb, here is a quick sample of code:
Dim speak As System.Speech.Synthesis.SpeechSynthesizer = New System.Speech.Synthesis.SpeechSynthesizer
Dim word as string = "hello"
speak.Rate = 1
speak.Speak(word)
Now what I'm looking to do is make use of a welsh based voice and make an application like the one below:
View 4 Replies
Sep 27, 2009
I have a program that requires a string. The string is 20 characters long. The string also have to be split into 2 words the first word is 12 characters and the second is 8. If the strings is not 20 characters long I get an error. I wanted to know how can I get the program to start back over and let me enter another 2 more words if the string is not 20 characters long. At the moment after I get the string is not 20 characters long error it continues to read the rest of the program but I want it to stop after an error and let me start over from the beginning.
View 3 Replies
Dec 5, 2009
I need to create a small program that runs in the taskbar to monitor browser urls for particular words.We are using it at work to catch people going to certain banned websites in the work place.Right now it works if i hand code each banned site into the code directly and run with a timer:[code]This works perfectly. Problem now is the Admins want direct access to add/remove different sites to the list.There is no way I am giving them access directly to my code (a bad day comes to mind).So I am attaching a small database with a small table to the server and allowing them to add URLS there. I am stuck in how to use this data though.I have tried pulling up the database column into a listbox but can not configure the code to check each line in listbox to compare to each browser window.
I also tried listed the items in a one column datagrid and try to loop through each row to compare each window.I need each browser window to be compared to a list of items and trigger events if a match is found.If your wondering why I am building this, our IS security people are all or nothing. Either no Net or Full Access.Also our people are a bit to smart to be tracked through history or simple blocking methods.
View 2 Replies
Sep 27, 2009
Created for Bill Smith Bill Smith 100 Maple St. Nowhere, MI 49091 Program Information undecided about Your Career Path? I can find the position where "Created for" occurs in the string
VB
Private Function FindText(ByVal strText As String) As String
Return InStr(strText, "Created for")
End Function
I am trying to get the first and last name that occurs right after the "Created for" in that string but I have not found a good way to do so. Essentially there are multiple files in a directory that I am spinning though and changing the name of the files to match the name in the file.
View 5 Replies
Jun 3, 2009
1. Is it possible to have vb.net piece together a legitimate word of a specified length, or do I need to have a massive word list, and generate a random number to pick a word from this list?
2. I also need to separate each letter of the word and display an image for each letter, and each letter going to the next based on a timer, and can also repeat on a button click.
Eg: TWO would end up displaying T W O, a few seconds apart from each other.
View 19 Replies
Apr 20, 2010
I'm trying to delete all words from my dictionary. I get this error. How can I fix this?
vb.net
For Each word In dictionary
dictionary.Remove(word.Key)
Next
This is my error Collection was modified; enumeration operation may not execute.
View 13 Replies
Sep 4, 2009
What I'm trying to do is get the HTML after the "3" and before the "4" not including the "3" and "4" in the HTML in a Webbrowser. How exactly would I go about doing this?
[Code]...
View 3 Replies
Nov 1, 2010
I'm trying to create a program that takes 7 numbers and converts them to Letters. To do this I have created a TextBox to enter the 7 digit number in , a CONVERT Button, and a LIST BOX to display the thousands of results. This is created using a Windows Application Form.
[Code]...
View 4 Replies
Feb 2, 2012
I am making a program which generates Tambola Tickets. The program reads a list of movie names from a file and it randomly selects x no. of names per ticket and writes those names to a file.
For e.g. imagine there are 24 movie names. The program has to print 10 tickets and each ticket will habe 12 names.
I have written a program which does that but I think my random no. generator is repeating a few movie names pretty frequently.
plus I have to ensure that no one ticket can have a name repeated.
Dim NoTickets as Short = 10, Total as byte = 24 ' total = total movies in array
' Duplicate is function that ensures that no number is repeated
' MovieList is normal array with movie names
[Code].....
View 5 Replies
Nov 16, 2009
I am doing the following to change the color of a word in a RichTextbox, but it sorta has a bug in it, which I'm not sure what to do with it.
vb.net Private Sub ScriptEditor_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles ScriptEditor.KeyUp
[Code]...
View 5 Replies
Aug 4, 2010
I know I can use the Split function to split things, but that works with chars. I want to split pieces of text by a word, namely: [ CODE ] (without spaces) I tried entering that into the Split function but it would split [, not including CODE] Is there an other method to do that?
[Code]....
View 2 Replies
Jan 26, 2012
other than GML (Yoyogames.com Game Maker Language), I am new to the coding world. The only "major" project I have completed using VB is a computer calculator that exactly mimics the capabilities of Windows 7's calculator. Yesterday, I began a Chatbot program for my girlfriend. Lol. I have used the instr() function to answer most of the questions or answers which are typed into the textbox1. I find this extremely troublesome because when using the instr() function you cannot say instr(textbox1.
Public Class Form1
Dim fos As String = "Foster: "
Dim ash As String = "Ashley: "
[code].....
View 8 Replies
Nov 4, 2011
In short let's say i have a form with a text box and a label. I am going to insert a number for example "1365" in the text box and then in the forms label it'll output "one thousand three hundred sixty five".
View 4 Replies
Jan 27, 2010
I have a textbox which has about 120 lines of text but this can vary. I want to search for an array of words, like Boeing, Airbus, Saab etc there might be 3 options there might be 5 options in this array that i'm looking for. My question is how can I search the textbox and highlight all these words? Similar to (Control + F) in IE8. I've looked at InStr but am unsure if this is what I'm after as it does not seem to work for me.
View 4 Replies
Apr 9, 2009
I am in a "survey of programming languages" course and have a professor who doesn't teach. There is no text book for this course.I am working a VB Form project to take a URL, grab the HTML source code, parse out all words, and count the occurrences of each word on the page. I have built the form, and written the code to parse the words and store them in an array. What is the most efficient way to count the occurrences of each individual word in that array (case insensitive), sort the results decreasing from most frequent, and display the results of the ten most used words. I will be displaying the results in two separate listboxes on my form. 1 listbox shows the words, and the other shows the number of occurrences.
View 17 Replies
Aug 7, 2011
I need to Replace two duplicate word into two different words.Like:
abc is a search engine and also abc a search engine.
to
google is a search engine and also yahoo a search engine.
I tried this.
Quote:
TextBox1.Text = Replace(TextBox1.Text, "abc", "google")
But it replaces all abc to google. But I need to change first abc to google and second abc to yahoo and so on.also tried this one
Quote:
Dim m14 As MatchCollection = Regex.Matches(TextBox1.Text, "abc", RegexOptions.Singleline + RegexOptions.IgnoreCase)
For Each n1 As Match In m14
Dim value As String = n1.Groups(0).Value
'MsgBox(value)
[code]....
View 1 Replies
Mar 12, 2010
i have a text file which contain 149000 Words 1 Word Per LineI want to Search Words Who end with "sd" or something else i am using a listbox in which i load all text and then search for it i don't want to know how to search directly from text file listbox method take too much time?
View 8 Replies
Jun 5, 2009
It's exactly as the topic says. I have a text file with an unknown amount of words, typed out like this:tastymuffinsaredeliciousWhat I need is a counter that will tell me how many words there are, and in this case (besides a tasty muffin), there are 4 words. Is there a simple way to do this?
View 3 Replies
Nov 6, 2010
How to search and replace words in listbox items.
just can't seem to work it out
View 13 Replies
Sep 15, 2010
Still getting to grips with regex and have seen a few samples about that give me most of what I need so asking for opinion on this. I need to extract x words from a single line, so the regex could use w+ to get characters, however my line may contain anything inside the word like:
[Code]...
View 6 Replies