Solved

writing events in vb.net

Posted on 2004-09-02
7
186 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 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

9 Experts available now in Live!

Get 1:1 Help Now