Maximize size of textbox

Posted by Sukesh.Net under ASP.NET on 6/6/2012 | Points: 10 | Views : 2340 | Status : [Member] | Replies : 2
Hi,

When i click on textbox i want to maximize the size of the textbox bot height and width.. Can any one help on this task?

Thanks & Regards
Ch.Sukesh Kumar

Thanks
Sukesh



Responses

Posted by: Rickeybglr on: 6/6/2012 [Member] Starter | Points: 25

Up
0
Down
you can update your textbox size by using javascipt on onclick event
<script type="text/javascript">
function increase (form) {
var val = form.h1.value;
val++;
form.h1.value = val;
}
</script>

Sukesh.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: perfectchourasia-9163 on: 6/7/2012 [Member] Starter | Points: 25

Up
0
Down
private void button1_Click(object sender, EventArgs e)
{
this.textBox1.AutoSize = true;
this.textBox1.Text = "Hello world!";
this.textBox1.Font = new System.Drawing.Font("Arial", 10, FontStyle.Regular);

this.textBox2.AutoSize = false;
this.textBox2.Text = "Hello world!";
this.textBox2.Font = new System.Drawing.Font("Arial", 10, FontStyle.Regular);
}


ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

Sukesh.Net, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response