How about VB2010 textbox or richtextbox set the background to transparent (or insert picture)
CodePudding user response:
Control itself does not support transparent, which how to just can become transparent? Consult everybody down
CodePudding user response:
The most convenient approach: TextBox stacked on the Label
Option Explicit
Private Sub Form_Load ()
Label1. BackStyle=0
Label1. BorderStyle=1
Label1. Caption=""
Text1. Visible=False
Text1. Text=""
End Sub
Private Sub Label1_Click ()
Text1. Visible=True
Text1. SetFocus
End Sub
Private Sub Text1_LostFocus ()
Label1. Caption=Text1. Text
Text1. Visible=False
End Sub
CodePudding user response: