<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Programatically creating and fetching controls in TablelayoutPanel in' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Programatically creating and fetching controls in TablelayoutPanel in' posted on the 'Advanced VB.Net' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 20:03:17 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 20:03:17 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Programatically creating and fetching controls in TablelayoutPanel in</title>
      <link>http://www.programmersheaven.com/mb/TheOne/412335/412335/programatically-creating-and-fetching-controls-in-tablelayoutpanel-in/</link>
      <description>hi,&lt;br /&gt;
  I have something to share with all.&lt;br /&gt;
Tablelayoutpanel can arrange the controls in the cells by defining the column and row number. We can add controls by defining the column and row Number.&lt;br /&gt;
&lt;br /&gt;
Add a TableLayoutPanel control in the form and name it as "TablelayoutPnl".&lt;br /&gt;
 &lt;br /&gt;
Dim IDLbl As New Label&lt;br /&gt;
IDLbl.Name = "ID"&lt;br /&gt;
IDLbl.Size = New System.Drawing.Size(10, 17)&lt;br /&gt;
IDLbl.Text = "Test"               &lt;br /&gt;
Dim IDpos As New TableLayoutPanelCellPosition(0, 0)&lt;br /&gt;
TablelayoutPnl.SetCellPosition(IDLbl, IDpos)&lt;br /&gt;
TablelayoutPnl.Controls.Add(IDLbl)&lt;br /&gt;
 &lt;br /&gt;
Dim NameTxt As New TextBox&lt;br /&gt;
NameTxt.Size = New System.Drawing.Size(100, 17)&lt;br /&gt;
NameTxt.Text = "Test Data"&lt;br /&gt;
Dim NamePos As New TableLayoutPanelCellPosition(1, 0)&lt;br /&gt;
TablelayoutPnl.SetCellPosition(NameTxt, NamePos)&lt;br /&gt;
TablelayoutPnl.Controls.Add(NameTxt)&lt;br /&gt;
 &lt;br /&gt;
Here one label and text box will be created in the first row in the first and second cell respectively.TableLayoutPanelCellPosition takes two parameters column and row. we can increase the row number in a for...loop if we want to create more number of rows&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;a href="http://www.mindfiresolutions.com/programatically-creating-and-fetching-controls-in-tablelayoutpanel-in-windows-application-771.php"&gt;Eliza&lt;br /&gt;
&lt;/a&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/TheOne/412335/412335/programatically-creating-and-fetching-controls-in-tablelayoutpanel-in/</guid>
      <pubDate>Wed, 27 Jan 2010 05:50:04 -0700</pubDate>
      <category>Advanced VB.Net</category>
    </item>
  </channel>
</rss>