<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Runtime Control Indexing Problems to set the index on control for call it in IF condition</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/runtime-control-indexing-problems-to-set-the-index-on-control-for-call-it-in-if-condition/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/runtime-control-indexing-problems-to-set-the-index-on-control-for-call-it-in-if-condition/</link>
	<description></description>
	<lastBuildDate>Tue, 18 Jun 2013 05:59:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: maheshwag</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/runtime-control-indexing-problems-to-set-the-index-on-control-for-call-it-in-if-condition/#comment-81001</link>
		<dc:creator>maheshwag</dc:creator>
		<pubDate>Tue, 31 Aug 2010 08:41:35 +0000</pubDate>
		<guid isPermaLink="false">#comment-81001</guid>
		<description><![CDATA[count.to string is declare in Class Body Its Int variable.]]></description>
		<content:encoded><![CDATA[<p>count.to string is declare in Class Body Its Int variable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maheshwag</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/runtime-control-indexing-problems-to-set-the-index-on-control-for-call-it-in-if-condition/#comment-81000</link>
		<dc:creator>maheshwag</dc:creator>
		<pubDate>Tue, 31 Aug 2010 08:37:38 +0000</pubDate>
		<guid isPermaLink="false">#comment-81000</guid>
		<description><![CDATA[I have new problem with this matters, that  I have created above control and works well but it&#039;s not focusing well in flowlayout panel controls.

suppose

there are  two texboxes name&quot;tbb&quot; and two textbox name&quot;bb&quot;
like below in FLP

tbb                                                                                                              bb


above FLP a textbox name textbox1 I am trying to focusing on created control in FLP by keypress event on textbox1

as per ur suggestion I have applied like this.
&lt;pre&gt;

 private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
        {
            if ((Keys)e.KeyChar == Keys.Enter)
            {
                if (tbb != null)
                {
                    this.flowLayoutPanel1.Controls[&quot;tbb&quot; + count.ToString()].Focus();
                }
                else
                    controlcreat();

            }
        }

it&#039;s through error like &quot;Object Reference no set an instance to object like that.

I just want to focusing on runtime created control for modifying one by one am confused lot  help me please.&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>I have new problem with this matters, that  I have created above control and works well but it&#8217;s not focusing well in flowlayout panel controls.</p>
<p>suppose</p>
<p>there are  two texboxes name&#8221;tbb&#8221; and two textbox name&#8221;bb&#8221;<br />
like below in FLP</p>
<p>tbb                                                                                                              bb</p>
<p>above FLP a textbox name textbox1 I am trying to focusing on created control in FLP by keypress event on textbox1</p>
<p>as per ur suggestion I have applied like this.</p>
<pre>

 private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
        {
            if ((Keys)e.KeyChar == Keys.Enter)
            {
                if (tbb != null)
                {
                    this.flowLayoutPanel1.Controls["tbb" + count.ToString()].Focus();
                }
                else
                    controlcreat();

            }
        }

it's through error like "Object Reference no set an instance to object like that.

I just want to focusing on runtime created control for modifying one by one am confused lot  help me please.</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/runtime-control-indexing-problems-to-set-the-index-on-control-for-call-it-in-if-condition/#comment-80671</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Mon, 23 Aug 2010 13:31:15 +0000</pubDate>
		<guid isPermaLink="false">#comment-80671</guid>
		<description><![CDATA[It would be good to see the code you are trying.  

The provided solution should work if you are using it from inside your Form class, and the name of the FlowLayoutPanel is correct and the value of &#039;i&#039; is correct.

&quot;Controls&quot; is a collection, member of the FlowLayoutPanel.  We are not creating an instance of it.]]></description>
		<content:encoded><![CDATA[<p>It would be good to see the code you are trying.  </p>
<p>The provided solution should work if you are using it from inside your Form class, and the name of the FlowLayoutPanel is correct and the value of &#8216;i&#8217; is correct.</p>
<p>&#8220;Controls&#8221; is a collection, member of the FlowLayoutPanel.  We are not creating an instance of it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maheshwag</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/runtime-control-indexing-problems-to-set-the-index-on-control-for-call-it-in-if-condition/#comment-80638</link>
		<dc:creator>maheshwag</dc:creator>
		<pubDate>Sat, 21 Aug 2010 05:49:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-80638</guid>
		<description><![CDATA[The Modified Code Used and The Result Remain Same. It&#039;s Throw same error.
I Think The Controls is Reference type object and we trying to create an intstance of the same.
Which System not allowed to set.

May be i wrong but solution is important for the above problem.]]></description>
		<content:encoded><![CDATA[<p>The Modified Code Used and The Result Remain Same. It&#8217;s Throw same error.<br />
I Think The Controls is Reference type object and we trying to create an intstance of the same.<br />
Which System not allowed to set.</p>
<p>May be i wrong but solution is important for the above problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/runtime-control-indexing-problems-to-set-the-index-on-control-for-call-it-in-if-condition/#comment-80623</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Fri, 20 Aug 2010 18:21:31 +0000</pubDate>
		<guid isPermaLink="false">#comment-80623</guid>
		<description><![CDATA[I modified the answer.

Try using the FlowLayoutPanel&#039;s controls collection instead.]]></description>
		<content:encoded><![CDATA[<p>I modified the answer.</p>
<p>Try using the FlowLayoutPanel&#8217;s controls collection instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maheshwag</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/runtime-control-indexing-problems-to-set-the-index-on-control-for-call-it-in-if-condition/#comment-80621</link>
		<dc:creator>maheshwag</dc:creator>
		<pubDate>Fri, 20 Aug 2010 17:49:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-80621</guid>
		<description><![CDATA[Note:-The Code is on tb controls&#039; enterkeypress event]]></description>
		<content:encoded><![CDATA[<p>Note:-The Code is on tb controls&#8217; enterkeypress event</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maheshwag</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/runtime-control-indexing-problems-to-set-the-index-on-control-for-call-it-in-if-condition/#comment-80620</link>
		<dc:creator>maheshwag</dc:creator>
		<pubDate>Fri, 20 Aug 2010 17:46:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-80620</guid>
		<description><![CDATA[thx ur feedback sir,

am tried ur code as below.
&lt;pre&gt;

// tb.keypressevent 

if(this.Controls[&quot;tbox&quot;+i.tostring()].text==&quot;&quot;)
{
textbox2.Visible=True;
textbox2.Focus();
}

&lt;/pre&gt;

but sir, it through error like &quot;Object reference not set to an instance of an object&quot;

How do I rectify It.]]></description>
		<content:encoded><![CDATA[<p>thx ur feedback sir,</p>
<p>am tried ur code as below.</p>
<pre>

// tb.keypressevent 

if(this.Controls["tbox"+i.tostring()].text=="")
{
textbox2.Visible=True;
textbox2.Focus();
}

</pre>
<p>but sir, it through error like &#8220;Object reference not set to an instance of an object&#8221;</p>
<p>How do I rectify It.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maheshwag</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/runtime-control-indexing-problems-to-set-the-index-on-control-for-call-it-in-if-condition/#comment-80609</link>
		<dc:creator>maheshwag</dc:creator>
		<pubDate>Fri, 20 Aug 2010 15:10:53 +0000</pubDate>
		<guid isPermaLink="false">#comment-80609</guid>
		<description><![CDATA[sir,

Kindly read my question carefully, my problem is how to get last index at runtime if last index control like textbox.text =&quot;&quot; then setfocus to another control. I don&#039;t know how to call lastindex of runtime control in specific condition like &quot; if&quot;]]></description>
		<content:encoded><![CDATA[<p>sir,</p>
<p>Kindly read my question carefully, my problem is how to get last index at runtime if last index control like textbox.text =&#8221;" then setfocus to another control. I don&#8217;t know how to call lastindex of runtime control in specific condition like &#8221; if&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/runtime-control-indexing-problems-to-set-the-index-on-control-for-call-it-in-if-condition/#comment-80608</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Fri, 20 Aug 2010 15:04:42 +0000</pubDate>
		<guid isPermaLink="false">#comment-80608</guid>
		<description><![CDATA[But you didn&#039;t say what your problem is.]]></description>
		<content:encoded><![CDATA[<p>But you didn&#8217;t say what your problem is.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/9 queries in 0.013 seconds using memcached
Object Caching 380/383 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-18 06:12:08 -->