Solved

writing events in vb.net

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

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

820 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