Friday, January 27, 2012

Setting the text for label control windows form

Creating an instance of a Label.


Label label1 = new Label();


Set text to display on the control


label1.Text = "First Name";

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0




Ramneek Sharma
MCP,MCTS,MCPD,MCT,IBM SQC