Hello ,
sorry for the “Non- mikrotik question”
I have build a mice API for my router in 1 form.
now I want to open a new window to show me some data and run some functions(from the main form)
this is what I did :
namespace MyAPI
{
public partical class Form1 : Form
Mk mikrotik
.
.
string PingTIme; //get the resualt from CheckPing function.
public Form1()
private void Form1_Load(object sender , EvenArgs e)
public void CheckPing();
.
.
.
private void button1_Click (object sender , EvenArgs e)
{
var form = new Form2();
form.Show();
}
class MK()
public partical class Form2 : Form
{
Form1 mainForm;
public Form2()
{
intializeComponent();
}
private void button1_Click()
{
mainForm.CheckPing();
textBox1.Text = PingTime;
}
}
but it doesn’t work in Form2
any idea why?
Thanks ,