c# - TableLayoutPanel doesnt display my pictureBoxes -


i want powerpoint slides of current presentation , add them picture boxes table layout panel, picture boxes not displayed reason.

public partial class ppt_gui : form {     public ppt_gui(powerpoint.slides sld)     {         initializecomponent();         int rowcount = 1;         picturebox[] box;         box = new picturebox[sld.count];          (int = 0; < sld.count; i++)         {             sld[i+1].copy();             box[i] = new picturebox();             box[i].width = 90;             box[i].height = 90;             box[i].sizemode = pictureboxsizemode.stretchimage;             box[i].borderstyle = borderstyle.fixedsingle;             box[i].bringtofront();              tablelayoutpanel1.controls.add(box[i], i%3, rowcount );              if (i % 3 == 0)             {                 tablelayoutpanel1.rowstyles.add(new system.windows.forms.rowstyle(system.windows.forms.sizetype.absolute, 360f));                 rowcount++;             }                            if (clipboard.getdataobject().getdatapresent(dataformats.bitmap))             {                 imagesource imgsource = binarystructconverter.imagefromclipboarddib();                 box[i].image = imagewpftogdi(imgsource);             }         }     } } 


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -