.net - How to increase label box text Size in c# windows application? -
i using following code, when run below code, half of text displayed in label box. want display full line in label box text? how it?
label dynamiclabel1 = new label(); dynamiclabel1.location = new point(280, 90); dynamiclabel1.name = "lblid"; dynamiclabel1.size = new size(150, 14); dynamiclabel1.text="smith had omitted paragraph in question (an omission had escaped notice twenty years) on ground unnecessary , misplaced; magee suspected him of having been influenced deeper reasons."; dynamiclabel1.autosize = true; dynamiclabel1.font = new font("arial", 10, fontstyle.regular); panel1.controls.add(dynamiclabel1);
label dynamiclabel = new label(); dynamiclabel.location = new point(38, 30); dynamiclabel.name = "lbl_ques"; dynamiclabel.text = question; //dynamiclabel.autosize = true; dynamiclabel.size = new system.drawing.size(900, 26); dynamiclabel.font = new font("arial", 9, fontstyle.regular);
Comments
Post a Comment