dbl-click the control
"Jmar" <jmarzion@yahoo.com> wrote in message
news:c49c2815.0407281007.93e9e30@posting.google.co m...[color=blue]
> Having spent many years working with VB 4.0 I've recently purchased
> VB.net. At this early point I have two questions.
>
> 1) How can I QUICKLY view the code associated with a specific control?
> If I right-click on the control (say a combo box) and select "View
> Code" it seems to take me back to the last code I was viewing. I
> would like to go to the combo box event code. This is slowing me way
> down!
>
> 2) I have data in an ACCESS 2003 database. I have a form that has
> several combo boxes and text boxes. Each of these has an associated
> field in the database. I want to write code so that each time the user
> selects something in any of the combo boxes, a search is done of the
> database to find the associated record. If found, the text boxes are
> filled with data from that record. It is also possible that there
> will not be a matching record so then the user must manually input the
> text boxes. What is the easiest way to do this with code. In VB 4.0
> I opened a table a did a SQL query to pull up that record. I then set
> each text box to the associated field. Im sure there is something
> similar in .NAT but I'm having difficulty grasping it. Please provide
> a code example.
>
> Thank you in advance for help on either question.
>
> John[/color]
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.721 / Virus Database: 477 - Release Date: 7/16/2004