473,396 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Two vb.net questions

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, let's 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 directlly 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 .NET but I'm having difficulty grasping it. Please provide
a code example.

Thank you in advance for help on either question.

John
Jul 21 '05 #1
1 1150
"Jmar

See inline
1) How can I QUICKLY view the code associated with a specific control?
If I right-click on the control, let's 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 directlly to the combo box event code. This is slowing me way down! In top of your IDE are 2 comboboxen in the left one you select the control
and in the right than the event.

Than by selecting the event it shows where that starts.

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 .NET but I'm having difficulty grasping it. Please provide
a code example.

John that is no easy question to answer because it needs a lot of telling
about the database, about the dataset, about binding and about the combobox.
(Keep in mind that the text part of the combobox in dotNet is not the nicest
control to work with it has a lot of often unexpected behaviour)

Have a look in this resource kit and than at the section dataaccess first
for that I think that that can help you as well.

VB.net Resource kit
http://msdn.microsoft.com/vbasic/vbrkit/default.aspx

And if you have problems installing the resource kit
http://msdn.microsoft.com/vbasic/vbr...q/#installvdir

Another resource for learning is the Quick Starts
http://samples.gotdotnet.com/quickstart/

Know that a good resource for VB.net questions is this very active newsgroup

microsoft.public.dotnet.languages.vb

I hope this helps a little bit?

Cor

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: softwareengineer2006 | last post by:
All Interview Questions And Answers 10000 Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP) I have listed over 10000 interview questions asked in interview/placement test papers for...
0
by: softwareengineer2006 | last post by:
All Interview Questions And Answers 10000 Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP) I have listed over 10000 interview questions asked in interview/placement test papers for...
0
by: softwareengineer2006 | last post by:
All Interview Questions And Answers 10000 Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP) I have listed over 10000 interview questions asked in interview/placement test papers for...
0
by: connectrajesh | last post by:
INTERVIEWINFO.NET http://www.interviewinfo.net FREE WEB SITE AND SERVICE FOR JOB SEEKERS /FRESH GRADUATES NO ADVERTISEMENT
0
by: connectrajesh | last post by:
INTERVIEWINFO.NET http://www.interviewinfo.net FREE WEB SITE AND SERVICE FOR JOB SEEKERS /FRESH GRADUATES NO ADVERTISEMENT VIEW Interview questions and interview experiences , articles...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.