How can I prevent an Office Custom Task Pane for resizing, so that it’s only and always have the dimensions and can’t be closing with the “close” button.
myCustomTaskPane.Height = 500;
myCustomTaskPane.Width = 500;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Where _tp is a reference to your task pane (not the CustomTaskPane container), _ctp is the CustomTaskPane container, iw is the InspectorWrapperDictionary:
And, in your task pane code:
setvars() is a command to pull in the proper iw and set the references to _tp and _ctp