Originally posted by iOBX
Hey guys want to do CCAPI.notify using if else if, but How do I get the selected options !
I think its like this !
private void reaperButton3_Click(object sender, EventArgs e)
{
if (reaperComboBox1.SelectedItem == Info)
{
string message = this.reaperTextbox1.Text;
PS3.CCAPI.Notify(CCAPI.NotifyIcon.INFO, message);
}
else if (reaperComboBox1.SelectedItem == Caution)
{
}
}
but Visual Studio says it does not exist in Current Context !
who Can Help me ?
use .SelectedIndex, it is better :p
then do for each item in the dropbox a special action using an if statement
or, i like my way better, instead of doing an if statement for each item in the dropbox, use my way:
CCAPI.NotifyIcon aids = (CCAPI.NotifyIcon)CCAPI.NotifyIcon.ToObject(typeof(CCAPI.NotifyIcon) , reaperComboBox1.SelectedIndex);
and for the 'action' do this
PS3.CCAPI.Notify(aids, urmsg);