my teacher gave me this text document call english.dic.... it has 196000 words or maybe more. can anyone know how to do if i want to run the program, i can choose if i want uk english or us english. at the moment i have this button1 and listbox1.and when i press button 1 it would list all the words.
[code....]
this is my code for button1 and listbox1. can i use a radiobutton and select uk english or us english and only those words will be shown at listbox1? or there's no way i can do it cos it depends on the file already?
I'm facing a major problem with a Deployment Project I created to install one of my applications.I am using the ENGLISH IDE of the Visual Studio 2008 - even though my end users will have German environments. This is why I set the
Localization = German
Property in the Deployment Project's Properties. The UI of the generated setup is German, so all's fine there. However, the setup installs the ENGLISH .Net Framework. I have not found any way around this.The problem are at least twofold:
1. An English Framework on a German PC might cause instabilities.
2. It's a big flaw to see UI inconsistencies (i.e. the UI and Setup of the application is German while the NET Framework shows certain elements in English, e.g. the DisplayName property of cultures)how can I get the project to install the localized .NET Framework?
I want to simulate a way to "force" the ASC function to use the english codepage, even on a system having the "language for non-unicode" different than English.[code]On a system having "language for non-unicode" set as English, currently the result is 140..On a system having "language for non-unicode" set as Slovakian, currently the result is 79..The twist is I CANNOT user AscW (for reasons I cannot disclose)In the particular example above I would need for the code to always return 140.If there's a way to force the whole program to use the english code page I could work with that as well.[code]
How do I calculate relative time?How do I calculate someone's age in C#? Anyone know how of a function in VB.NET or C# that will take two dates, calculate the difference and output that difference in an english string? For example if I pass the dates '3/10/2009' and '3/25/2009', the function would return the string "15 Days" or if I pass the dates '3/10/2005' and '3/15/2007', the function would return "2 Years, 5 days"
I have been playing around with trying to create an english to pig latin translator. I am not really sure where to start, so right now I am just focusing on splitting a string and search for "A", if the word has "A" add "way" to the end of it. Here is what I figured out from some reasearch (I found most of this from a post on here): Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code]...
It works, But I am not sure how to get it so it search the entire string without having to do 1,2,3,ect.
What would be the best way to search the string for certain letters? I was thinking some type of case or loop but I tried a few different things, but could not get it process correctly. Google, gives me alot of different examples, but I can not get most of them working with my code. I only have a semester of VB.net Programming, so I am trying to find the best way to do this, without making it too complicated.
Declare constants for all numeric values in the two formula above. The variable used to represent the number of meters and the numeric constant 39.37 must be declared as the data type double. the constants and data types in the first formula should be declared as integers. Convert the Total Inches in the second formula to a Double data type before using it in the calculation. Set Option Strict to on in your code. (Hint: After the number of meters has been determined, the maximum number of kilometers can be computed from Kilometers = Meters/1,000. Next, the remaining meters can be determined from: Remaining Meters = Meters - 1,000 * Kilometers. The number fo integer meters in Remaining Meters then can be determined from: Integer Meters = Convert.ToInt32(Remaining Meters). Continue with the same technique to compute the number of centimeters.)
the form allows the user to type in a word in English and get back its Spanish translation. To accomplish this, you must read a (dictionary) file into a Dictionary (hash table) data structure and search that structure used its properties and methods.
I have a form to display in textboxes text which has been read in from a txt file. The data can contain accented characters from European languages (French, Spanish etc.) but when these occur the display is corrupted. How do I configure VB.NET to handle these characters (I am assuming there is some setting to do this rather than having to write code to process all input)?
I have been pulling my hair on how to write a simple (may be not) program to recognize my native language (again, not English).I want to be able to just speak to the computer as we could in English and have the program type the words for me.We use the English alphabet to write our words so that's one step ahead already, but I don't understand how I can tie the sound to the words.
I have a program in which a user enters a sentence in English into a text box, then the sentence is translated into French and German based on words in an array of structures that gets its values from a text file. I have almost all of the program written, but I am a bit confused on how to get VB to get the English words that are entered into the text box separately so they can be translated individually and the value returned. I need help with this last part. I need to use a Sub Procedure to get the English Words and to Translate them.[code]
I am making an english to pig latin translator and I cannot quite get this right! For some reason i can always get the first word to translate but the other words jumble together and sometimes repeat themselves.The rules for this program are as follows: To translate an English word into a pig Latin word, place the first letter of the English word (if it is not a vowel) at the end of the English word and add the letters "ay." If the first letter of the English word is a vowel, place it at the end of the word and add "y." Using this method, the word "jump" become "umpjay," the word "the" becomes "hetay" and the word "ace" becomes "ceay". Blanks between words remain blanks.
So far this is what I've got: Public Class Form1 Private Sub btnTran_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTran.Click Dim Sentence As String, letter As String, wordI As String, word1 As String, word As Double, wordamount As Double, counter As Integer = 0, current As Double txtOutput.Text = ""
I have a tool which reads dBase files and uploads the contents to SQL Server, part of a system to import shapefiles. It works but now we have a requirement to import files that include non-English characters (Norwegian in this case, could be other languages later) and they're being corrupted. The dBase files are being read using an OleDbDataAdapter. Stepping through the code I can see that the text is wrong as it is read in. I'm assuming it's something to do with code pages or Unicode but I have no idea how to fix it.A dBase Reader application tells me the DBFs are in code page 1252 - I don't know if this is correct. My upload tool runs on Win7 with English (UK) regional settings.[code]Is there a way to tell OleDbDataAdapter what code page to use or a better way to read dBase files from VB.Net?
ifference between Japanese operating system and English operating system when launch an application that be created base on .NET 3.5 framework. Develop computer:
Operating system : Windows Vista, Japanese edition Developing environment :Visual Basic 2008
Run computer:
Operating system : Windows XP SP3, English edition
Both 2 computers are up to .NET 3.5 framework.The application ran well on Japanese edition OS computers but when I tried to launch on English edition OS computer, there was an error described : See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ************** System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for system.xml.serialization/xmlSerializer: Exception has been thrown by the target of an invocation. --->
[code]....
I guess this error is result of not able to reading from XML file that includes Japanese words. These words are defined as string.
Rudimentary Translator gives English words and their French and German equivalents. Store these words in a text file and read them into a structure having a member for each language. Write a program that sorts arrays according to the English words. The program should then request an English sentence as input from the keyboard and translate it into French and German. For example, if the English sentence given is MY PENCIL IS ON THE TABLE, the French translation will be MON CRAYON EST SUR LA TABLE, and the German translation will be MEIN BLEISTIFT IST AUF DEM TISCH.
Note: Assume that the only punctuation in the sentence is a period at the end of the sentence. Use a binary search to locate each English word.English words and their French and German equivalents.
English French German YES OUI JA TABLE TABLE TISCH THE LA DEM
I am looking for a way to convert the Arabic numerical string to an English numerical string "0123456789" Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click dim Anum as string = dim Enum as string =get_egnlishNum(Anum) End Sub private function get_egnlishNum(byval _Anum as string) as string ''converting code End function
Is there any way to convert to english words to any other languages as it typed.for example, if i type "sekar" in a text box it should be converted to "tamil" language.
i have a deffrent languages installed in my machine and i want to prevent the user from writing any other language except the English ... so how i can do that in vb.net code
This Visual Basic program running on Visual Studio 2010 needs modification on the search coding, so a search for words from the dictionary is performed, then the program should test words from dictionary to test if words value equal 100 based off the given rule : A=1, B=2, C=3 ..... Z=26, Then displays all the words from the search that equal 100 in a listbox. I will attach the program I have so far. I would like to modify the program so when the search button is clicked, the program will check all words from the dictionary, or English Language, or etc..which equals 100. The goal is to find inputted words by the user that equal exactly 100 and also searches for words in the dictionary that equal exactly 100.
This Visual Basic program allows a user to input a word and also SHOULD search for words in the dictionary, English language, etc. that equals exactly 100 based on the rule, then the program calculates the value of inputted words or searches based on the rule. I need to modify my program so that the search button will search all combinations of characters that equal 100 (and possibly display in a second listbox) and compare to words in the English Dictionary and then display the words from the dictionary that equal 100 in a third listbox (I have not added second or third listbox to original program). Is this possible, and how does the code look and work to perform a search of all words in the Dictionary .
Public Class Form1 Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click MsgBox(GetWordValue(TextBox1.Text)) ListBox1.Items.Add(TextBox1.Text) If GetWordValue(TextBox1.Text) = 100 Then [Code] .....
i have two textboxes in my form.when i type the text in the first textbox which is english language.now i need to display the the text in telugu language in other textbox.
In my current project, i need to build a tool to translate text from some languages to English Ex.: Chinese To English Is there any translation SDK available?
When a user types into a VB.Net textbox, I want to detect the key press (assuming I cannot read the text from the textbox after its written). This is easy for English (by using e.KeyChar or Keys.[A, B, C, ...etc]). However, if I change my default keyboard in Windows from English to another language, say Arabic or Farsi, still the English characters are detected (although Arabic or Farsi is being typed in).
I have a program in which a user enters a sentence in English into a text box, then the sentence is translated into French and German based on words in an array of structures that gets its values from a text file. I have almost all of the program written, but I am a bit confused on how to get VB to get the English words that are entered into the text box separately so they can be translated individually and the value returned. I need to use a Sub Procedure to get the English Words and to Translate them.
Here is what I have so far. Code: Public Class frmTranslate ' Create Structure with a member for each language Structure Translator Dim english As String Dim french As String [Code] .....
Im trying to create a program that translates english to another language. i have no clue how to begin doing this, i have the program designed and all of the buttons besides the "Translate" button coded...it has 2 radio button to choose which way you are translating, (English to german, or German to english) the input is a textbox, and the output is a label. and its going to be nothing more than a "replace this word with that word" kind of program. Im also going to connect to a database where the list of words will be held.