Example Of How To Determine The Type Of System::Object
private: void MyHandleEventFunction(System::Object^ sender, System::EventArgs^ e)
{
//WHAT TYPE OF OBJECT TRIGGERED THIS?
if (sender->GetType() == System::Windows::Forms::ComboBox::typeid)
{
//OBJECT IS A COMBO BOX
System::Windows::Forms::ComboBox ^TargetComboBox = (cli::safe_cast(sender));
(more...)



