Solved

writing events in vb.net

Posted on 2004-09-02
7
191 Views
Last Modified: 2010-04-23
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
0
Comment
Question by:srinivas_vemla
7 Comments
 
LVL 11

Accepted Solution

by:
Babycorn-Starfish earned 25 total points
ID: 11963223
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
 
LVL 25

Assisted Solution

by:RonaldBiemans
RonaldBiemans earned 25 total points
ID: 11963305
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
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 11965904
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
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 11965964
Hi Emoreau, your comment looks familiar.
0
 
LVL 8

Expert Comment

by:wguerram
ID: 11977981
If you are in the form right click the control and select ViewCode.

Then do what  RonaldBiemans and emoreau posted.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now