VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Capitalizes the first letter in a textbox as input.

by Renato Gesulga (Hindang, Leyte)Philippines (1 Submission)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 21st July 2008
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Capitalizes the first letter in a textbox as input.

API Declarations




Rate Capitalizes the first letter in a textbox as input.



'Author: Renato Gesulga
'course: BS information Technology
'Address: Brgy.San Vicente, hindang, Leyte, Philippines
'email: [email protected]
'mobile #: 639104534819
'College: MLG COLLEGE OF LEARNING
'School Add: Atabay, Hilongos, Leyte,philippines
'i dedicate my original thoughts of vb codes to myBhe2... Rugelyn Labajo.


  ' this code is tested and will run without any error..
  'unlike those submited code were not running
  'i personally test those such code on this site but nothing happens but capitalized all text.
   'but the submitter stated that it would capitalized the first letter of text..but nothing it just capitalized all text
  'to the people who submitted the cheated code..create your own not by copying the code from books. be original.
  'exmple code submitted: the calculator code was not create by  Arkajo Majumdar submitted 7/11/2008 coz i have it on my vb book  since 2004
  'so impossible to have exactly code by code..he copy the code from book..so don't give them credit to the codes.
  
  'this code is my original thought, as well as my other code that was submitted   7/12/2008
  'very simple code yet error free and running code..
  'type this code at keypress of your control; the textbox
  'this code tells vb to automatic capitalized the first char
  'that was inputed by the users....
  
Dim a As String, b As Integer
Text1.text = StrConv(Text1.text, vbProperCase) + vbcrf
Text1.SelStart = 10
'this value states on how many word to be space on text1 control
'because the space value is the primary medium to perform the above code.
'note if you need to input huge number of words change 50 to higher number you like.
Text1.SelStart = Text1.SelStart + 50

Download this snippet    Add to My Saved Code

Capitalizes the first letter in a textbox as input. Comments

No comments have been posted about Capitalizes the first letter in a textbox as input.. Why not be the first to post a comment about Capitalizes the first letter in a textbox as input..

Post your comment

Subject:
Message:
0/1000 characters