Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 250
  • Last Modified:

on click of the label, enable the textbox to enter the data

I am new to VB .NET.I am working on a simple application where you have three labels on the form along with a TextBox on the side of each label.

for example :

    Label1 with TextBox1
    Label2 with TextBox2
    Label3 with TextBox3

When the user clicks on Label1, the prompt should appear on TextBox1 for the user to enter the price.Can you please tell me what I need to do.Please let me know if you have any questions.

1 Solution
you mean like (disable the textbox in design time)

Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
        TextBox1.Enabled = True
    End Sub

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now