Create A Rudimentary Translator For Class?

Jul 2, 2009

Trying to create a Rudimentary Translator for class. I have to have english words that equal to the german or french equivalents. The words must be stored in a text file and read into a structure with a member for each language. The program would request an English sentence as input and translate it into German or French. Assume all punctuation would be a peroid a the end of the sentence.

Example: english-yes german-ja french-qui

View 10 Replies


ADVERTISEMENT

Create A Rudimentary Text Editor With Buttons That Can Implement The Cut, Copy And Paste Commands?

Jun 12, 2011

I am attempting to create a rudimentary text editor with buttons that can implement the Cut, Copy and Paste commands. I was able to use buttons on a toolbar and menu to implement the Cut, Copy and Paste commands using the "Command="Cut"" command in the XAML of the buttons on the toolbar and menu but have been unsuccessful in using regular buttons to implement the commands. When I attempted to use the "Command="Cut"" command for regular buttons the buttons appear disabled when debugging the application. Does anyone know if the Cut, Copy and Paste commands are disabled for regular buttons?

View 2 Replies

Create A New Class That Inherits From The Base Form Class And Define A New() Method With Parameters?

Oct 1, 2008

I've been creating short test apps repeatedly to try to understand some of the concepts in VB.NET.For the most part it has been illuminating.I read Bucky's .NET knowlegebase tutorial on passing objects as parameters to newly created forms. He shows how to create a new class that inherits from the base form class and define a New() method with parameters Extending the concept I thought about doing the same thing with a form that was created at design-time (In this case Form2).

[Code]...

View 6 Replies

VS 2010 : Create A New Class And Have Each List Item Of That Class Such As 'btnID', 'btnText'?

Apr 27, 2011

I want to read a number of items from a file and then associate each of those items with a new button at run-time, so that when the user clicks one of the buttons I can display some information about that item.Can I use a LIST to manage these buttons and items? Can I create a new class and have each list item of that class, such as 'btnID', 'btnText', etc... ?

View 2 Replies

How To Rewrite EDI Translator

Mar 28, 2011

Currently I have to parse each row in the file into a string array segments(). Then I look at the first few elements to see where I am at. E.G.

'Patient Loop
IF Segment(0) = 'NM1' and Segment(1) = 'QC' and current loop = '2000' Then
PatientFName = Segment(2)

[code].....

View 9 Replies

Make A Na'Vi Translator?

Jan 9, 2010

I have a couple people asking me to make a Na'Vi translator (for those who saw Avatar). If I was to take on such a project, how would you go about creating a language translator in VB? (i.e. *TargetLanguage* -> English and visa-versa)

View 13 Replies

Pig Latin Translator In VB?

May 2, 2012

Im having serious problems with this code. I can get the first and last words to change into pig latin but the middle of my phrase stays the same. I also seem to have problems with it repeating itself.

Public Class Form1
Private Sub translatebutton_Click(sender As System.Object, e As System.EventArgs) Handles translatebutton.Click
Dim pig As String = ""

[code]....

View 4 Replies

VB To C# Code Translator

May 17, 2012

i am convering VB code to c# :

Private Function SoundsLike(ByVal pWord As String,
Optional ByRef pAccuracy As Byte = 6) As String.

But i got diffrent type of parameters.Let me know how can i write in c#.

View 6 Replies

Develop A Translator Using Program?

Oct 3, 2009

I have no problems with the Syntax Errors.So far the only problems I'm having are with the Runtime Errors and Logistic Errors.

View 4 Replies

English To Spanish Translator?

May 13, 2012

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.

View 1 Replies

VB English To Piglatin Translator?

Jun 12, 2011

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 = ""

[Code]...

View 2 Replies

Developing A Translator With A Separate Database?

Apr 18, 2012

I want to develop a translator (e.g. German to English ) with a separate database. What is the best way to do this? The database must be able to record words and phrases with their meaning. The database capacity must be at least 2,000,000 and phrases. Also, what is the best data structure for fastest retrieval of the information.

View 4 Replies

English To French/German Translator?

Mar 24, 2009

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

[code]....

View 1 Replies

Make A Leetspeak Translator In Vb 2010?

Mar 19, 2012

i've tried to make a leet translator but it fails.

View 7 Replies

Make Translator Interactive With The User

Oct 5, 2009

I want to make my translator interactive with the user. In microsoft Word the User can change the dictionary terms of the word or insert a word to make the (little red line) beneath a misspelt word go away. In my translator program. I have a databank of words that are inside a strArray. The strArray is read as EnglishWord[SpanishDefinition] and SpanishWord[EnglishDefinition] inside the DataBank. I want the user to be able to insert a word with it's definition if the databank does not have the word or the definition...

View 13 Replies

VS 2008 Secret Message Translator

Nov 3, 2009

i'm currently making a program that converts every letter into some other letter creating a secret message that only this program can convert back into english. Could some help me with the convert code? I understand i would need 2 textbox's and 1 button at the least.The button would place textbox1.text into textbox2.text then it will convert lets say (if textbox2.contains "a" then) i dont know after that. i would want it to change the "a" to "g" instead. without doing any other change. [code] Now this is just converting the letter "a" to letter "g". I would want the whole alphabet.

View 11 Replies

Create Objects Of C# Class From Program Class In DNN?

Feb 23, 2011

Can we create objects of a C# class from a VB.NET class and vice versa?

View 2 Replies

VS 2010 Class Create Another Instance Of The Class Itself?

Jun 11, 2012

I want to create a class that will "search" for something. Basically I load up the "search item" when the class is created and inside the class is logic to do the "search". The result of this logic will be more "searches" that I want to start. How can I have the logic in the class create another instance of the class itself?

View 3 Replies

VS 2008 Object Data - Create A Class And Create A Instance Of CarData?

Nov 28, 2010

I want to create a class is it where I can do...

[code]...

How do I do this? Do i create a class and create a instance of CarData? but how do I add Color and Year etc to it?

View 3 Replies

Make A 'translator' That Will Simply Just Swap Each Letter?

Nov 15, 2010

I'm trying to make a 'translator' that will simply just swap each letter with each other, (a = b, b = a, c = d, d = c ect.), when the user types something into a textbox. How would I go about making it?

View 6 Replies

VS 2008 Code - Making An English To Pig Latin Translator

Apr 16, 2011

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 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:

[Code]....

View 3 Replies

Create A Class That Will Allow To Create Windows Shortcut?

Sep 10, 2008

I'm in the process of trying to create a class that will allow me to create windows shortcut; Im using the following PDF file that gives me the shortcut file structure.

Ive been able to successfully load a shortcut file and parse its Lnk File Structure but now Im on the Shell Item ID List structure but I cannot find the Structure of the ITEMIDLIST anywhere

Furthermore I know I could use the Windows script object, but this is a dependency Im trying to avoid if I can, hence writing my own Shortcut class.

View 2 Replies

Class Has Been Create By Main Class Only?

Feb 27, 2011

I'm try to create a class has been create by main class only by protect sub New but how do I create it ?

Public MustInherit Class Rune
Protected MustOverride Function Create() As Rune
Public Shared Function Factory(Of T As Rune)() As T
'I can't use "T As {Rune, New}" because Sub New isn't Public
'Return (New T).Create
End Function
End Class

[Code]...

View 2 Replies

Create A Custom Class That Has Inside An Array Of Another Custom Class?

Jan 31, 2011

I want to create a custom class that has inside an array of another custom class (see my code below) but when the programm runs is crashes. Why? What is the right expression???? Plz help I'm a newbie in VB.net.....

Public Class ctrarray
Public nameclass As String
Public ctrlindex(glvar_spaces) As ctrlindexclass
End Class

[code]....

View 6 Replies

Make A Translator - Translateevery Single Letter And Make It 1 Word

Sep 7, 2009

I want to make a translator like this: [URL]...I have already made two textboxes and a button. If I type in textbox 1 abc then textbox 2 must say nop. I already know the If textbox1.text = "abc" then textbox2.text = nop. I don't want that i want to translate the a to a n and the b to a o and the c to p. So i want to translate every single letter and make it 1 word. Its like a secret code. My language looks like that a=nb=oc=pd=qe=rf=sg=th=ui=vj=wk=xl=ym=z n=ao=bp=cq=dr=es=ft=gu=hv=iw=jx=ky=l z=m

View 22 Replies

How And When To Create Class (.dll)

Jan 13, 2012

I want to create a helper class(.dll) but I 'm not sure how to create and when to create, what's its use and so on.

View 3 Replies

How To Create Own Class In .Net

Sep 15, 2011

I want to share this tutorial for others so that we also an idea what they are suggest. This simple line of codes and Screenshot determines the invalid type required in textbox. I created my own class to control the invalid typing of data required in textbox. Example, the textbox required only a data that accepts all string input and if the user's prompt to input the numeric value, invalid message display that the field required only text input. Here is the site, just click

View 9 Replies

How To Know When To Create Class

Sep 24, 2009

I used to do my coding without classes until the last few months and my best friends was my functions now when i started working with the .NET language I can understand how important it is to use classes, I can appreciate its values and and its many pluses.BUT I'm still not sure when it's time to create class for a certain task or start creating bunch of functions to handle my target.

View 5 Replies

.net Create Connection Class?

Mar 19, 2012

I want to create a class in vb.net that make the connection to database.Also I need the way to use this class inside forms. I need a code example of both the class and the form call

View 1 Replies

Asp.net - Create A GridView From A Class?

Feb 28, 2012

I have recently been working with creating a GridView from codebehind to make it more flexible so that I can eventually have it created based on user specifications.Now I'm exploring classes, and I thought it would be cool to create a GridView class so that whenever I need to make a GridView I can just pass the class my specifications instead of having the same code re-written on each page's codebehind.Here's how I'm currently making my GridView with codebehind. Any idea how I can change this to create the GridView with a class?

.aspx page:

<asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
EmptyDataText="There are no data records to display." AllowPaging="True"
CssClass="GridViewStyle" GridLines="None" Width="100%">

[code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved