Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15484

VS 2010 Only the first line is translated correctly

$
0
0
Hi,
I am facing strange error - I have created offline translator in the past using visual basic 2008, today I converted it without problems into VB 2010. But, when I click on the translate button, only the first line from textbox1 multiline is translated into textbox2 multiline. Other lines are left untranslated at all.

Example:
Quote:

table - tabuľka
options -
development -
Code is very simple:
Code:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            If TextBox_English.Text = "table" Then
            TextBox_Slovak.Text = "tabuľka"
        End If
            If TextBox_English.Text = "options" Then
            TextBox_Slovak.Text = "nastavenia"
        End If
            If TextBox_English.Text = "development" Then
            TextBox_Slovak.Text = "vývoj"
        End If
End Sub

I have checked options of both textboxes and code again, but I dont know where is the problem.

Viewing all articles
Browse latest Browse all 15484

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>