Taskpane width.... - InfoPath Dev Sign in | Join | Help in General InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » General » Taskpane width.... Taskpane width.... Last post 02-28-2006 12:28 PM by Agni Jonnalagadda. 3 replies. Page 1 of 1 (4 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 02-26-2006 12:49 PM Karsten Brocksieper Joined on 02-07-2006 Germany Posts 220 Taskpane width.... Reply Contact Hello,...is it possible to set the taskpane width programmatically in the onload event?Thanks for any tips.Karsten Karsten 02-26-2006 01:46 PM In reply to AndersR Joined on 10-20-2005 Denmark Posts 138 Re: Taskpane width.... Mark as Not AnswerMark as Answer... Reply Contact Hi KarstenYou can access this property through the CommandBars property (read: your form needs to be fully trusted)XDocument.View.Window.CommandBars("Task Pane").Width = sizeInPixels; hth 02-27-2006 12:11 AM In reply to Karsten Brocksieper Joined on 02-07-2006 Germany Posts 220 Re: Taskpane width.... Mark as Not AnswerMark as Answer... Reply Contact Hello,thank you very much for your quick response. That was exactly what I needed...In addition I want to say that you have to put this command in the "On context change" event but NOT in the "On Load" event...CheersKarsten Karsten 02-28-2006 12:28 PM In reply to Agni Jonnalagadda Joined on 12-15-2004 India Posts 617 Re: Taskpane width.... Mark as Not AnswerMark as Answer... Reply Contact When the form is still in the OnLoad event, view object is still not created so "XDocument.View.Window" will give null reference exception. Where as "On context change" event fires after the View object is created and context is on some node. Agni / http://www.ggktech.com Page 1 of 1 (4 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.