471,334 Members | 1,363 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,334 software developers and data experts.

invokemember setproperty

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

Feb 8 '06 #1
0 1879

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Alex Zhitlenok | last post: by
3 posts views Thread by Patrick Ireland | last post: by
4 posts views Thread by Howard Kaikow | last post: by
reply views Thread by Michal | last post: by
7 posts views Thread by hsn | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.