• Changing the color and Size of the caret in vb.net textbox

    CarltonBirch Member

    I just want to change the size and color of a textbox as I am a native vb6 coder and also I don’t want to use migrate/upgrade wizard for this one.

    Does the .net IDE has any functions/procedures for accomplishing this task. If so, can anybody suggest the code(Simple Code) for this.

  • codewithc
    CWC Keymaster

    when you select the textbox on your right you have properties of the textbox , just scroll down to Font and from there you can choose the size , font type , bold.. then just underneath you have the forecolor which you can also change

    lso if you want to change some property of the text box using a button in your form you can do it using this code :

    TextBox1.ForeColor = Color.Cyan
    Me.TextBox1.Font = New Font("Arial", 30)
    
Viewing 1 reply thread
  • You must be logged in to reply to this topic.
en_USEnglish