Need some help - enabling checkboxes 03-16-2013, 01:42 AM
#1
So in my Skype Bot, I'm making a login, and when you login (from a second form) it tells a label on the first form to change. That label has a text changed event, that when happens, declares the Skype declaration, and then starts listening to the messages you get.
Before I did this, in Form1_Load, it worked perfectly fine, but when I have this in the label text change event, it doesn't work. I can't enable anything either (Checkboxes or buttons).
And I know it's getting to the voids because I have message boxes show to show how far the code has gotten. It just doesn't do anything except message boxes.
I've also tried simply enabling the stuff and making the skype declaration in the text changed event, and that doesn't work either.
Text Changed Event:
Enable Event:
TurnOn Event:
Before I did this, in Form1_Load, it worked perfectly fine, but when I have this in the label text change event, it doesn't work. I can't enable anything either (Checkboxes or buttons).
And I know it's getting to the voids because I have message boxes show to show how far the code has gotten. It just doesn't do anything except message boxes.
I've also tried simply enabling the stuff and making the skype declaration in the text changed event, and that doesn't work either.
Text Changed Event:
Code:
private void User_TextChanged(object sender, EventArgs e)
{
password = Pass.Text; //label for password
username = User.Text; //label for username
enable();
turnon();
MessageBox.Show(username + " : " + password)
}Enable Event:
Code:
private void enable()
{
checkBox1.Enabled = true;
checkBox2.Enabled = true;
checkBox3.Enabled = true;
checkBox4.Enabled = true;
checkBox5.Enabled = true;
checkBox6.Enabled = true;
checkBox7.Enabled = true;
checkBox8.Enabled = true;
checkBox9.Enabled = true;
checkBox10.Enabled = true;
checkBox11.Enabled = true;
checkBox12.Enabled = true;
checkBox13.Enabled = true;
checkBox14.Enabled = true;
checkBox15.Enabled = true;
checkBox16.Enabled = true;
checkBox17.Enabled = true;
checkBox18.Enabled = true;
checkBox19.Enabled = true;
checkBox20.Enabled = true;
afButton4.Enabled = true;
afButton3.Enabled = true;
afButton2.Enabled = true;
afButton1.Enabled = true;
MessageBox.Show("Stage1");
}TurnOn Event:
Code:
private void turnon()
{
try
{
skype = new Skype();
skype.Attach(7, false);
skype.MessageStatus +=
new _ISkypeEvents_MessageStatusEventHandler(skype_MessageStatus);
//listfriends();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}![[Image: BAvhP6h.png]](http://i.imgur.com/BAvhP6h.png)
Code:
[5:42:25 PM] i0xillusi0n: Breshie don't bust a nut over chloe now
[5:42:31 PM] Entity: fapfapfapfapfapfapfapfapfapfap
[5:42:33 PM] Jigglypuff | SL: EWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW



![[+]](https://sinister.li/images/modern/collapse_collapsed.png)




Me and Lux are the realest users here.