//Constructs the gui public GUI() { myCanvas = new GUIElements(this); InitializeComponent(); //Add custom events here, ie viewFinder.MouseDown += new MouseEventHandler(viewFinder_MouseDown); }
//Constructs the gui public GUI() { myCanvas = new GUIElements(this); InitializeComponent(); this.DoubleBuffered = true; //Add custom events here, ie viewFinder.MouseDown += new MouseEventHandler(viewFinder_MouseDown); viewFinder.MouseMove += new MouseEventHandler(viewFinder_MouseMove); }
//Constructs the gui public GUI() { myCanvas = new GUIElements(this); InitializeComponent(); //Add custom events here, ie //viewFinder.MouseDown += new MouseEventHandler(viewFinder_MouseDown); IPAddress[] localIP = Dns.GetHostAddresses(Dns.GetHostName()); foreach (IPAddress address in localIP) { if (address.AddressFamily == AddressFamily.InterNetwork) { ServerIPtextBox.Text = address.ToString(); } } }