Example #1
0
        private void Form2_Load(object sender, EventArgs e)
        {
            VNCObject vnc = new VNCObject();

            textBox1.Text = vnc.Path;
            textBox2.Text = vnc.Port;
            textBox3.Text = vnc.Password;
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            string    path = textBox1.Text;
            string    port = textBox2.Text;
            string    pass = textBox3.Text;
            VNCObject vnc  = new VNCObject(path, port, pass);

            this.Close();
        }