[Tutorial] VB Textbox Allignment
2013-08-07, 03:13 PM, (This post was last modified: 2013-08-07, 03:30 PM by »Wave«.)
#1
Hello, this is my first tutorial thread. Just now, Im getting problem on how to make the text in textbox at the middle/centre. Im search the forum and cant find it. Then I use the power of google. After a few minutes, I found the solution. So see below for the steps Wink

1) Double click on your textbox until it appeared multiple lines

   


2) Put the line under it ->TextBox1.TextAlign = HorizontalAlignment.Center

   


3) The result. Now it look more HQ, professional, neat and beautiful


   


Thanks for reading. Btw the password form i learned it from here created by lanzye

Thanks again Smile, Thanks this post if it usefull to you ^_^
Latest Thanks - View all

Calisthenics(2013-08-07 03:19 PM) 
Reply
Share This Thread :

2013-08-07, 03:50 PM,
#2
You could also just write: TextBox1.TextAlign = HorizontalAlignment.Center in the Form1 Load or you could click on the text box and go to properties and set "text align" to "center" :)
Latest Thanks - View all

Soup(2013-08-07 04:10 PM) 

[Image: Cq7OnC1.png]
If You Don’t Build Your Dreams, Someone Will Hire You To Help Build Theirs
Reply
2013-08-07, 04:09 PM,
#3
(2013-08-07, 03:50 PM)Nuutero Wrote: You could also just write: TextBox1.TextAlign = HorizontalAlignment.Center in the Form1 Load or you could click on the text box and go to properties and set "text align" to "center" :)

the properties i just noticed...btw microsoft website didnt show this...it say to do the manual way
Reply
2013-08-07, 04:16 PM,
#4
(2013-08-07, 04:09 PM)crackerzwave Wrote:
(2013-08-07, 03:50 PM)Nuutero Wrote: You could also just write: TextBox1.TextAlign = HorizontalAlignment.Center in the Form1 Load or you could click on the text box and go to properties and set "text align" to "center" :)

the properties i just noticed...btw microsoft website didnt show this...it say to do the manual way

Probably because many programmers want to code everything from the beginning. They don't even drag the buttons etc. they create them with code.

[Image: Cq7OnC1.png]
If You Don’t Build Your Dreams, Someone Will Hire You To Help Build Theirs
Reply


Related Threads
Thread Author Replies Views Last Post
  [TUTORIAL]Get free premium fonts from myfonts website Raman saab 28 7,753 2018-10-12, 09:01 AM
Last Post: TrueWanderer
  Aeonsofts VB.NET Theme Manager v2.1 lanzye 31 12,573 2017-10-28, 04:48 PM
Last Post: waiphyoe
  Tutorial on creating a forum justformasti 11 2,197 2016-06-18, 08:06 AM
Last Post: playfreakz
  VB NET FORM APPLICATION QwertySon 12 2,312 2016-04-27, 08:00 PM
Last Post: Harrington
  »» Learn The Basics of HTML/CSS/PHP «« »» Video Tutorial «« allnet 1 822 2015-03-31, 03:10 AM
Last Post: Heka





About Us | Contact Us | CPA Elites | Advertise | Stats

© 2013-2018 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top