Connecting Tech Pros Worldwide Forums | Help | Site Map

Two VB.net questions

Jmar
Guest
 
Posts: n/a
#1: Jul 17 '05
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

Rick Rothstein
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Two VB.net questions


Almost everybody in this newsgroup is using VB6 or lower. While you may
get a stray answer to VB.NET questions here, you should ask them in
newsgroups devoted exclusively to .NET programming. Look for newsgroups
with either the word "dotnet" or "vsnet" in their name.

For the microsoft news server, try these newsgroups...

microsoft.public.dotnet.general
microsoft.public.dotnet.languages.vb
microsoft.public.vsnet.general

There are some others, but these should get you started.

Rick - MVP



"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]

Hal Rosser
Guest
 
Posts: n/a
#3: Jul 17 '05

re: Two VB.net questions


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


Closed Thread


Similar Visual Basic 4 / 5 / 6 bytes