Hi,
Before with comboboxes you could either select something from the lsit or
you could type in a different value (one that is *not* in the list) to use.
I have a combobox of cities and sometimes the city names are not in my
zipcode table.
So I need to be able to type in a city name other than what is in my zipcode
table and be able to save it.
Everytime, I try this with VB.NET Form Control Combobox. When I move to the
next record it will select a value in the lsit to save and save it.
*Discarding* the city name I actually typed.
How do I get the combobox to act the old way. That is allowing a person to
either select from the dropdown list or to type in something different?
Many thanks! 2 1544
"Angela" <An****@discuss ions.microsoft. com> wrote in message
news:7B******** *************** ***********@mic rosoft.com... Hi,
Before with comboboxes you could either select something from the lsit or you could type in a different value (one that is *not* in the list) to use.
I have a combobox of cities and sometimes the city names are not in my zipcode table.
So I need to be able to type in a city name other than what is in my zipcode table and be able to save it.
Everytime, I try this with VB.NET Form Control Combobox. When I move to the next record it will select a value in the lsit to save and save it. *Discarding* the city name I actually typed.
How do I get the combobox to act the old way. That is allowing a person to either select from the dropdown list or to type in something different?
Many thanks!
Are you trying to save the new city name in the combo box's items collection
or somewhere else?
Have you tried saving what was typed (the Text property) and either putting
it into the combo box's Items collection or saving it in a variable using,
as a possible candidate, the LostFocus event procedure?
--
Peter [MVP Visual Developer]
Jack of all trades, master of none.
Hi Peter,
Thanks for replying... I figured out what I did wrong...
I had binded to a dataset and when doing so I binded the .SelectText value
for the saving value.
Inorder to get it to work I binded the .Text value of the combobox to the
dataset and it fixed my problem... Atleast I think... I haven't fully tested
it yet...
Many Thanks,
Angela
"Peter van der Goes" wrote: "Angela" <An****@discuss ions.microsoft. com> wrote in message news:7B******** *************** ***********@mic rosoft.com... Hi,
Before with comboboxes you could either select something from the lsit or you could type in a different value (one that is *not* in the list) to use.
I have a combobox of cities and sometimes the city names are not in my zipcode table.
So I need to be able to type in a city name other than what is in my zipcode table and be able to save it.
Everytime, I try this with VB.NET Form Control Combobox. When I move to the next record it will select a value in the lsit to save and save it. *Discarding* the city name I actually typed.
How do I get the combobox to act the old way. That is allowing a person to either select from the dropdown list or to type in something different?
Many thanks!
Are you trying to save the new city name in the combo box's items collection or somewhere else? Have you tried saving what was typed (the Text property) and either putting it into the combo box's Items collection or saving it in a variable using, as a possible candidate, the LostFocus event procedure?
-- Peter [MVP Visual Developer] Jack of all trades, master of none. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: VIJAY KUMAR |
last post by:
Hi all,
I have a problem with combobox. I have 2 comboxes cmbcategory and
cmbsubcategory.
I intialized cmbcategory with sum values from database on Form_Load.
when i select a vlue from the cmbcategory, i will get sub categories in
cmbsubcategory.
on Form load when ever cmbcategory is initializing its automatically
|
by: raj |
last post by:
Please Help with the combox DisplayValue property
private void cboClient_SelectionChangeCommitted(object sender,
System.EventArgs e)
{
String strSQL;
strSQL = "SELECT F.FollowUpPerson FROM tblFollowUpPerson F INNER JOIN
tblFollowUpPersonClient C ON F.FollowUpPersonID = C.FollowUpPersonID WHERE
C.ClientKey = '" + this.cboClient.SelectedValue + "' ";
ds = mg.GetDataSet(strSQL,"userList"); //Def is described at the end
|
by: Charles A. Lackman |
last post by:
Hello, I have a combox that I am trying to get to work in the following
fashion.
As you type in the combox that the item that matches what you are type is
selected.
as you type a last name:
Leyman
|
by: Alpha |
last post by:
This is a Window based application. How do I get my combox listing to
display in sorted order by DataMember? I inserted a blank row to the dataset
table which is the datasrouce for the comboBox with valuemember wet to -1.
This is showing up at the bottom of the list. I want it to show at the top
of the listing. How can I do that?
Thanks, Alpha
|
by: Alpha |
last post by:
I have a window application. On one of the form, there is a listbox and a
few combox. The lstSchItem has a dataview as a datasource. The comboxes are
bind to its selected value but through the dataset table. Now when I change
the selection in the lstSchItem the comboxes are staying the same and not
reflecting the changes. I tried changing the binding to the dataview.table
but the comboxes are still not changing to reflect the...
| |
by: Bob |
last post by:
The scenario is that of the employees table wherein there's an EmployeeId
and a ReportsTo field in the same table. The combobox is one in a datagrid
view that lets you select an employee from the employees table to fill in
the reportsto field, but since a person can't report to himself. I'm
wondering how to exclude the EmployeeId of the selected record from the
dropdown list of the combox. Ideally I think it would be to apply a filter
to...
|
by: neo1ra |
last post by:
Hi,
I'm doing a search combox to pop up and specific record. Everything is working fine until I make a change to the record that I'm working on and try to move to other record. A error message appear that said " Update or CancelUpdate without Addnew or Edit". I think that I need to add a message box that ask you if you want to save the record or not, but I don't know how to do it because I'm new in Access. Here is the code that I'm using...
|
by: summiyashaheen |
last post by:
how to read the valuemember of the combox whose data source is a detaset. i have assigned the properties of displaymember and valuemember . display member cis visible but i cant get the value member behind it..........
|
by: haringmunti |
last post by:
hi,
im new to vb.net and i think it is very interesting. im taking a course on it right now and sadly, the one giving the lecture is not doing a good job.
anyway, my question is how do i make a calendar using the combox box. i looked in one site and it shows you how to use "for" and "next" but that is only for integers. when it runs, i want people to select the month from January to December.
Your help will be greatly appreciated.
|
by: dewgan |
last post by:
I have a form with a combox box where the list is populated via a linked table. This works fine. I have a text box that is filled with the name selected in the combox box. That name is then added to another table. That works fine. My problem is this, I want to keep the second table from being populated with the same name. So, for exampe, if I select the name John Smith in the Combo box but John Smith already exist in the second table, I...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |