3
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by bLuEmEzzy
0
Dim txt As New TextBox
            txt.Name = "txttest"
            Dim loc As System.Drawing.Point
            loc.X = 300
            loc.Y = 168
            txt.Location = loc
            txt.Text = "Testing textbox"
           
            txt.ReadOnly = False
            Me.Controls.Add(txt)

Get the location of your label control and set that location to textbox and after adding the textbox hide your lable control

0

what do you want in converting?

i need this conversion to rename a folder in list view at runtime. like our folder renaming(F2) option in windows

0

i need this conversion to rename a folder in list view at runtime. like our folder renaming(F2) option in windows

i do not know if that is possible...
if you just do it with a textbox to make it looks like a label...
here it is...

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        TextBox1.ReadOnly = True
        TextBox1.BorderStyle = BorderStyle.None
        TextBox1.BackColor = Color.White
    End Sub

then if you want to edit

Private Sub TextBox1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.Click
        TextBox1.ReadOnly = False
    End Sub
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.