This project is read-only.
// Inside Task Pane Control

private void button2_Click(object sender, EventArgs e)
     // retrieve the invokable methods from DEFAULT_TP control and add them to a ComboBox
     comboBox1.Items.AddRange((string[]) _OwnerHost.OwnerAddin.RetrieveUIHostByProgId("SomeOtherControls.ProgId").GetInvokableMethods().ToArray());

private void button3_Click(object sender, EventArgs e)
     // invoke a selected method w/o parameters
     bool IsSuccess = _OwnerHost.OwnerAddin.RetrieveUIHostByProgId("SomeOtherControls.ProgId").InvokeMethod(comboBox1.Text);
     // invoke a selected method with parameters
     bool IsSuccess2 = _OwnerHost.OwnerAddin.RetrieveUIHostByProgId("SomeOtherControls.ProgId").InvokeMethod(comboBox1.Text, new object[] { 123, "hello world"});

Last edited Jun 18, 2010 at 4:00 PM by fixitchris, version 1


No comments yet.