Post: Can't figure this out!
02-01-2016, 06:24 PM #1
iOBX_
Haxor!
(adsbygoogle = window.adsbygoogle || []).push({}); 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 ?
(adsbygoogle = window.adsbygoogle || []).push({});
02-01-2016, 06:59 PM #2
Toxic
former staff
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);

The following user thanked Toxic for this useful post:

iOBX_
02-02-2016, 08:47 AM #3
iOBX_
Haxor!
Originally posted by Habibi
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);


Thank you ! I will try it next time i am in Visual Studio !
02-02-2016, 08:49 AM #4
iOBX_
Haxor!
Originally posted by Habibi
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);


So i can use this and this ? :

public static string urmsg = this.reaperTextox1.Text

?
02-02-2016, 11:00 AM #5
Toxic
former staff
Originally posted by iOBX
So i can use this and this ? :

public static string urmsg = this.reaperTextox1.Text

?


Yes, but y not just use it forward without declaring a string? Like PS3.CCAPI.NOTIFY(aids, reaperTextbox1.Text);?

The following user thanked Toxic for this useful post:

iOBX_
02-02-2016, 12:20 PM #6
iOBX_
Haxor!
Originally posted by Habibi
Yes, but y not just use it forward without declaring a string? Like PS3.CCAPI.NOTIFY(aids, reaperTextbox1.Text);?


aha yes but what if i want to use it in other things ? never mind... youre right, thanks so much !
02-02-2016, 12:20 PM #7
Toxic
former staff
Originally posted by iOBX
aha yes but what if i want to use it in other things ? never mind... youre right, thanks so much !


anytime buddy Happy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo