?
Solved

writing events in vb.net

Posted on 2004-09-02
7
Medium Priority
?
196 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 11

Accepted Solution

by:
Babycorn-Starfish earned 100 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 100 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
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…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

762 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