This method cannot be used while the control running in the "design-time" mode.I get this error every time I try to execute this code.
I need to be able to use the API, without adding it to a form.
The reason for this is because it will be run as a service on client machines.
How would I perform this funcionality?
using
System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;namespace
vnctester{
public partial class Form1 : Form
{
ServerX.CSC_ServerXControl XServer = new ServerX.CSC_ServerXControl(); public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
XServer.AddClientEx("an ip address", 5500, "ID:1234");
}
}
}