Hi,
I am doing Image Processing application. In that i have to do the panel layout functionality. I am using the User control to load the Images and doing multiple operation.
In that i want to printing Module, In print module i have to show the different layouts like 2X2,4X4 etc. I have attached the image for example.
Please anyone of our friends help me to complete this
Loading

Farooque AliPosted Jul 4, 2011, 7:35 AM
My requirement is, I have to select the layout from the form and using that i have to create different layouts. I dont know what control to be used. Table or gird .....?
if anyone of loaded in the usercontrol, i will call the same usercontrol in all the tabels or grid ....?
I have to load the Images from the folder when the page is load. For that i dont have the picturebox also. I have to create that dynamically
I was attached the image with previous post, but that was not found.
Mayur GujrathiPosted Jul 4, 2011, 4:51 AM
Problem solved or not
Mayur GujrathiPosted Jul 4, 2011, 3:56 AM
You can reside any controls in table layout panel
attached image not found
well still go through sample this code for using table layout panel using user control
onpage load
tableLayoutPanel1.CellBorderStyle = TableLayoutPanelCellBorderStyle.Inset;
tableLayoutPanel1.AutoSize = true;
tableLayoutPanel1.GrowStyle = TableLayoutPanelGrowStyle.AddRows;
int count;
on event on which you want to show panel suppose button click
here i am using textboxes you can use any control
TextBox tb1 = new TextBox();
TextBox tb2 = new TextBox();
TextBox tb3 = new TextBox();
TextBox tb4 = new TextBox();
TextBox tb5 = new TextBox();
tb1.Text = comboBox1.Text;
tb2.Text = comboBox2.Text;
tb3.Text = comboBox5.Text;
tb4.Text = comboBox4.Text;
tb5.Text = comboBox11.Text;
tb1.BorderStyle = BorderStyle.None;
tb2.BorderStyle = BorderStyle.None;
tb3.BorderStyle = BorderStyle.None;
tb4.BorderStyle = BorderStyle.None;
tb5.BorderStyle = BorderStyle.None;
tb1.ReadOnly = true;
tb2.ReadOnly = true;
tb3.ReadOnly = true;
tb4.ReadOnly = true;
tb5.ReadOnly = true;
tb1.BackColor = this.BackColor;
tb2.BackColor = this.BackColor;
tb3.BackColor = this.BackColor;
tb4.BackColor = this.BackColor;
tb5.BackColor = this.BackColor;
tableLayoutPanel1.Controls.Add(tb1, 0, count);
tableLayoutPanel1.Controls.Add(tb2, 1, count);
tableLayoutPanel1.Controls.Add(tb3, 2, count);
tableLayoutPanel1.Controls.Add(tb4, 3, count);
tableLayoutPanel1.Controls.Add(tb5, 4, count);
count++;