472,961 Members | 1,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Visual Studio Combobox control usage

I have a combobox that is loaded with last name from a table. I want to click
on the persons last name, and have all the ADO.NET bound textboxes on a form
load with the clicked persons data. I can do this rather easily in Access.
How can i do this in VB.NET/ADO.NET, I have manually bound the textboxes on
the form, the form uses a dataAdapter and dataset. I am stuck trying to get
this to work.
The underlying table has no ID's, it's strictly by last name.

Thanks Ed
--
Thats one small step for man....
Jul 21 '05 #1
2 4439
Ed,

I would not use a combobox for that. In VBNet you have the listbox, that is
easier to understand for people. When you want to use a combobox you have at
least to set it to dropdownlist, otherwise the typed in text becomes
confusing because it is not in the datasource and to what has the binding
than to be set.

When you than have bound your datasource column members from your listbox to
the textboxes, it should in my opinion work.

When this does not work, feel than free to reply.

I hope ths helps?

Cor


Jul 21 '05 #2
OK. I will try it with a list box. So, you say, If I bind the list box
properly, then when I select a name from the list, the fields on the form
should refllect that record.
OK..I'll let you know later today.

"Cor Ligthert" wrote:
Ed,

I would not use a combobox for that. In VBNet you have the listbox, that is
easier to understand for people. When you want to use a combobox you have at
least to set it to dropdownlist, otherwise the typed in text becomes
confusing because it is not in the datasource and to what has the binding
than to be set.

When you than have bound your datasource column members from your listbox to
the textboxes, it should in my opinion work.

When this does not work, feel than free to reply.

I hope ths helps?

Cor


Jul 21 '05 #3

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

Similar topics

2
by: Prasad | last post by:
Hello EveryBody, I am using cvs as my version control tool, I came accross CVS SCC plugin for Microsoft Visual Studio name "Jalindi Igloo" I plan to develop a tool like this, but have no idea to...
0
by: Tech | last post by:
In Visual Basic 6.0, the Locked property of a ComboBox control determined whether the text-box portion of the control could be edited. In Visual Basic ..NET, the Locked property prevents a control...
26
by: Bruno Jouhier [MVP] | last post by:
I'm currently experiencing a strange phenomenon: At my Office, Visual Studio takes a very long time to compile our solution (more than 1 minute for the first project). At home, Visual Studio...
9
by: String | last post by:
Don't have the fix I need it. This is the exact problem from microsoft: http://support.microsoft.com/default.aspx?scid=kb;en-us;819349 They do a nice job describing it and how to reproduce it....
7
by: Victor S. | last post by:
1. What is System.Windows.Forms.VisualStyles.TextMetricsCharacterSet good for? 2. Are the Indic scripts supported? Are all supported scripts fully supported? (for printing and fine measuring)...
2
by: Ed From NY | last post by:
I have a combobox that is loaded with last name from a table. I want to click on the persons last name, and have all the ADO.NET bound textboxes on a form load with the clicked persons data. I can...
6
by: JonSteng | last post by:
..Net Visual Studio Professional 2003 Version 7.1.3088 ..Net Framework 1.1 SP1 Version 1.1.4322 IIS 5.1 Windows XP Professional SP2 Micron T3000 Laptop (1.5 GHz; 1GB RAM; 40GB HD with 17GB Free)...
8
by: olrt | last post by:
Hello, I plan to install Visual C# 2005 Express. I need a source code control system. It seems that there's no express version of Visual Source Safe. What should I do ? Is Visual C# 2005 Express...
4
by: chaitu | last post by:
Hi guys, I've written a parallel build program (in Perl) that takes a pre-computed dependency tree of many projects in 2 visual studio .net 2003 solution (.sln) files here at my company, and...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.