writing events in vb.net

Hi

         I am new to vb.net. I have used c#.net before. in c# to handle textbox events if i click the property window of textbox it shows all the events associated with it. But in vb.net it is not showing like that.

i am using a dropdownlist in my program. at run time depending on the value the user selects in the dropdownlist , the textboxes must be populated with some values.

can anybody provide the code explaining how to do this.

thanks
srinivas_vemlaAsked:
Who is Participating?
 
Babycorn-StarfishConnect With a Mentor Commented:
Hi,

to see the events, double click on the textbox and you'll go into the code editor. Select the required event from the drop down list on the top right.

Best of luck

BS
0
 
RonaldBiemansConnect With a Mentor Commented:
In the code window you can choose your textbox in the left combobox and the events of the textbox will be in the right combobox

    Private Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged
        TextBox1.Text = DropDownList1.Items(DropDownList1.SelectedIndex).Value
    End Sub
0
 
Éric MoreauSenior .Net ConsultantCommented:
When you are in the code editor of a form, select the object (control) into the top left combo box, and the according events will be available in the top-right combo.
0
 
RonaldBiemansCommented:
Hi Emoreau, your comment looks familiar.
0
 
wguerramCommented:
If you are in the form right click the control and select ViewCode.

Then do what  RonaldBiemans and emoreau posted.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.