C# powerpoint2003 task pane visible

M

Michal

Hi, i'm trying in C# to turn on/off task pane in powerpoint. I can check the
status, but i can not set it.

this is example how can i check if task pane is visible

string property = "Task Pane";
object cbs = app.CommandBars;

object cbp;
object cbv1;

cbp = prtype.InvokeMember("Item", BindingFlags.Default |
BindingFlags.GetProperty,
null,cbs, new object[] {property} );

Type cbt = cbp.GetType();

cbv1 = cbt.InvokeMember("Visible", BindingFlags.Default |
BindingFlags.GetProperty, null,cbp, null);

I have try to use method SetProperty, but no success.

Thanks Michal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top