Resize controls upon button click - 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 » Resize controls upon button click Resize controls upon button click Last post 08-18-2011 08:02 PM by Jimmy. 3 replies. Page 1 of 1 (4 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 08-18-2011 07:46 AM rhai_aninion Joined on 08-17-2011 Posts 2 Resize controls upon button click Reply Contact Would it be possible to resize controls e.g. Multiple selection list box (height) on a click of a button? Thanks Much! 08-18-2011 01:01 PM In reply to Karsten Brocksieper Joined on 02-07-2006 Germany Posts 220 Re: Resize controls upon button click Mark as Not AnswerMark as Answer... Reply Contact Hello,and welcome to our forum,No, unfortunately it is not possible to resize any controls in the form dynamically --- even though it would be nice...but as far as you probably know controls in an infopath form have no properties like 'visible' or 'width', which you can set in 'code-behind'...The only way I have heard about is to resize the controls based of the width of the form. If you are interested in this please have a look at the following link.http://www.digitalsupporttech.com/mskb/827/827009_How_to_resize_the_controls_on_a_Microsoft_Office_InfoPath_form_based_on_the_width_of_the_form.htmRegards, Karsten 08-18-2011 02:05 PM In reply to rhai_aninion Joined on 08-17-2011 Posts 2 Re: Resize controls upon button click Mark as Not AnswerMark as Answer... Reply Contact Thanks for the suggestion Karsten. I will take a look at it and hopefully find a workaround. 08-18-2011 08:02 PM In reply to Jimmy Joined on 07-03-2008 Posts 2,595 Re: Resize controls upon button click Mark as Not AnswerMark as Answer... Reply Contact If it's only a few controls, and there are only a few different sizes you're looking to offer, you can place multiple controls bound to the same field in your form, and conditionally hide or show them accordingly. Jimmy Rishe / Software Developer / Microsoft MVPQdabra Software Page 1 of 1 (4 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Would it be possible to resize controls e.g. Multiple selection list box (height) on a click of a button?
Thanks Much!
Hello,
and welcome to our forum,
No, unfortunately it is not possible to resize any controls in the form dynamically --- even though it would be nice...but as far as you probably know controls in an infopath form have no properties like 'visible' or 'width', which you can set in 'code-behind'...
The only way I have heard about is to resize the controls based of the width of the form. If you are interested in this please have a look at the following link.
http://www.digitalsupporttech.com/mskb/827/827009_How_to_resize_the_controls_on_a_Microsoft_Office_InfoPath_form_based_on_the_width_of_the_form.htm
Regards,
Thanks for the suggestion Karsten. I will take a look at it and hopefully find a workaround.
If it's only a few controls, and there are only a few different sizes you're looking to offer, you can place multiple controls bound to the same field in your form, and conditionally hide or show them accordingly.