c# - How would I output every line for every label? -
thanks community help, i've been able put in dynamic label inside tab control, saved value list, , call want to. move on next question, if want output every sing line every dynamic label, how ? below code:
private void frmyourcart_load(object sender, eventargs e) { if (invoicerental.gettitle().count > 0) { //page 215 (int = 0; < invoicerental.gettitle().count; i++) { lblconsole.visible = true; lbltitle.visible = true; lblprice.visible = true; label resultlabel = new label(); resultlabel.autosize = true; resultlabel.location = new point(160, 200); resultlabel.anchor = (anchorstyles.top | anchorstyles.left); resultlabel.text += string.format("{0, 50} {1, 50}\n", invoicerental.gettitle()[i], invoicerental.getprice()[i]); this.controls.add(resultlabel); } }
Comments
Post a Comment