So I have this small bit of code
private void textBox1_TextChanged(object sender, EventArgs e)
{
string mood =
var skype = new Skype();
skype.CurrentUserProfile.MoodText = mood;
}
What would I make the string mood equal if I wanted the MoodText to be whatever was typed into the textBox1?
Edit: when I try Text
, whatever I type into the textbox when running the app, it makes my skype mood Form1
which is the name of the form.
you can get textbox value by using
TextBox senderTextBox= (TextBox)sender;
string mood = senderTextBox.Text;