fixing textbox size
i am using 50 textbox in windows form and i want all the textbox to be in same size .how to do that in vb.net ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Aug 19, 2013, 5:51 AM
1. Change the sizes of the textboxes in the designer; or
2. Delete all the textboxes from the designer and create them all dynamically in the Form_Load handler.
An advantage of #2 is that you can put them all in an array as they are created which should make them easier to handle subsequently. It's also easy to add the same eventhandlers to them all.
Creating them with odd sizes in the designer but then changing the size programatically is likely to end up with a muddle as it's unlikely that they'll then be aligned properly.
Iftikar HussainPosted Aug 19, 2013, 4:14 AM
Regards,
Iftikar
Nandhini JayachandranPosted Aug 19, 2013, 4:07 AM
Iftikar HussainPosted Aug 17, 2013, 3:58 AM
Regards,
Iftikar
Anubhav ChaudharyPosted Aug 17, 2013, 3:52 AM
You should use CSS for this.
Create a CCS File or in the head section of your application write this code under the