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
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