Selamler herkeze,
yeni yeni c# öğreniyorum, başka dillerden algoritma bilgim ve tecrübem var ancak dün bideneme yaptımve başka bi formdan diper bir formdaki webbrowseri yönlendiremedim,
hata gören söyleyebilirni ? işte kodlarım;
Form1.cs;
using System;
using System.Windows.Forms;
namespace Emgucv_temiz_candy
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
Form giris = new girisekrani();
giris.Show();
}
public void yonlendir(Uri url)
{
MessageBox.Show("Basarılı");
tarayici.Navigate(url);
}
}
}
girisekrani.cs
using System;
using System.Windows.Forms;
namespace Emgucv_temiz_candy
{
public partial class girisekrani : Form
{
public girisekrani()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Form1 f1 = new Form1();
f1.yonlendir(new Uri("www.google.com"));
}
}
}