vb.net - Can't dynamically fill third column TableLayoutPanel -


using vb 2012 dynamically creating new table inside table , trying fill 3 columns labels, 1st , 2nd fill correctly can't filling of third working.

dim ctr new tablelayoutpanel ctr.backgroundimage = serials_downloader.my.resources.resources.serialbg ctr.visible = true ctr.backcolor = color.transparent ctr.columncount = 3 ctr.width = 212 ctr.height = 64  tablelayoutpanel1.controls.add(ctr, 0, tablelayoutpanel1.rowcount - 1)    dim lblnew2 new label() lblnew2.text = "a" lblnew2.forecolor = system.drawing.color.white lblnew2.visible = true lblnew2.textalign = contentalignment.middlecenter lblnew2.font = new font("decker", 8) lblnew2.dock = dockstyle.fill ctr.controls.add(lblnew2, 0, 0)  dim lblnew new label() lblnew.text = "b" lblnew.forecolor = system.drawing.color.white lblnew.visible = true lblnew.textalign = contentalignment.middlecenter lblnew.font = new font("decker", 8) lblnew.dock = dockstyle.fill ctr.controls.add(lblnew, 1, 0)  dim lblnew3 new label() lblnew3.text = "c" lblnew3.forecolor = system.drawing.color.white lblnew3.visible = true lblnew3.textalign = contentalignment.middlecenter lblnew3.font = new font("decker", 8) lblnew3.dock = dockstyle.fill ctr.controls.add(lblnew3, 2, 0) 

thanks help!

edit:

solved,

by changing labels width lower value default "c" appeared.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -