Ahhh yeah I understand what you mean, perhaps there is something missing from the other pcs? Like for example netframework basically something that is not needed to use it from another computer but is needed if you want to host it on the pc(s) you are having trouble with? I`m just making guesses here but it could be something as simple as that lol.
Can anybody help me with this checkbox thing, I have a rough idea of what it is I need to do BUT Owner is just closing GUI and not disconnecting the client itself. Again I am TRYING to learn C# as best I can and with some tuts I am slowly learning but I have hit a hurdle which I can`t get over
So far the tutorials I have seen just tell you how to get a pop up box to open with strings and ints but doesn`t explain to me how to get it to activate something already coded in if you understand what I mean?
Code:
public bool dcplayers;
public GUI()
{
//Owner = C;
InitializeComponent();
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
dcplayers = Owner.DcAllPlayers;
if (checkBox1.Checked == true)
{
dcplayers = Owner.DcAllPlayers && checkBox1.Checked;
}
}
Code:
namespace AlchemyProxy
{
public partial class GUI : Form
{
public Client Owner;
public bool dcplayers;
public GUI()
{
//Owner = C;
InitializeComponent();
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
CheckBox staticCheckBox = new CheckBox();
staticCheckBox.Checked = true;
if (staticCheckBox.Checked)
{
Owner.DcAllPlayers = true; <<<----Just closes GUI when checkbox clicked what am I missing?
}
else
{
Owner.DcAllPlayers = false;
}
}