<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to change text in TextBox and it's width programaticly</title><link>https://www.infopathdev.com:443/forums/thread/30532.aspx</link><pubDate>Thu, 17 Jul 2008 14:16:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30532</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30532.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=30532</wfw:commentRss><description>&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;LINE-HEIGHT:150%;"&gt;&lt;span style="FONT-SIZE:10pt;LINE-HEIGHT:150%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Hello,&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;LINE-HEIGHT:150%;"&gt;&lt;span style="FONT-SIZE:10pt;LINE-HEIGHT:150%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;LINE-HEIGHT:150%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;We can’t change the width of the text box in programmatically. Those properties are available in .xslt file. These width setting properties are we can change directly in UI otherwise we have to get the view.xslt file and after our modification we have to save the .xslt file. &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;LINE-HEIGHT:150%;"&gt;&lt;span style="FONT-SIZE:10pt;LINE-HEIGHT:150%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;LINE-HEIGHT:150%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Directly modifying the .xslt file through programmatically, me not suggesting doing.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to change text in TextBox and it's width programaticly</title><link>https://www.infopathdev.com:443/forums/thread/30470.aspx</link><pubDate>Tue, 15 Jul 2008 21:28:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30470</guid><dc:creator>grigrim</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30470.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=30470</wfw:commentRss><description>&lt;p&gt;I have a few TextBoxes and I want to write a procedure like that:&lt;/p&gt;
&lt;div&gt;&lt;code&gt;If my.txtField1.text = &amp;quot;&amp;quot; Then&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;my.txtField1.width = 100%&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;Else&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;my.txtField1.width = auto&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;End If&lt;/code&gt; &lt;/div&gt;
&lt;p&gt;But unfortunately the only thing I can do is&amp;nbsp; getting the content of TextBox using msgbox:&lt;/p&gt;
&lt;div&gt;&lt;code&gt;Sub msoxd_my_txtField1_OnValidate(eventObj)&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;msgbox XDocument.DOM.selectSingleNode(&amp;quot;.//my:txtField1&amp;quot;).text&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;End Sub&lt;/code&gt; &lt;/div&gt;
&lt;p&gt;Could you please help me!&lt;/p&gt;</description></item></channel></rss>