using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace text_to_speech
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
try
{
webBrowser1.Navigate("https://translate.google.com.tr/");
webBrowser1.ScriptErrorsSuppressed = true;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void button1_Click(object sender, EventArgs e)
{
webBrowser1.Document.GetElementById("gt-src-listen").InvokeMember("click");
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
webBrowser1.Document.GetElementById("source").InnerText = textBox1.Text;
}
}
}
0 yorum:
Yorum Gönder