Okay, I'm probably re-inventing the wheel here, but I have two drop down
boxs on a form. One is "source" the other "destinatio n", I'm using a
combobox each to provide MRU utility.
The setting I've changed are:
AutoCompleteMod e -SuggestAppend
AutocompleteSou rce -FileSystemDirec tory
Drop[DownStyle -Drop Down
Sorted -True
I populate the cbo at form load time (well, I would if I had anything with
which to populate it!)
I also have a browse button which sets cbo.text.
I'm having two problems and obviously (as always) don't know what I'm
looking for.
What event(s) are fired when I change the cbo.text - as when I insert it
from the folderbrowserdi alogue (need to update the MRU list).
- and -
What event is fired when the user manually enters something and presses
return. I'm seeing nothing ....
If you can tell me how to tell what event is being fired, that would be
even better.
Thanks //al 4 2708
al jones wrote:
Okay, I'm probably re-inventing the wheel here, but I have two drop down
boxs on a form. One is "source" the other "destinatio n", I'm using a
combobox each to provide MRU utility.
The setting I've changed are:
AutoCompleteMod e -SuggestAppend
AutocompleteSou rce -FileSystemDirec tory
Drop[DownStyle -Drop Down
Sorted -True
I populate the cbo at form load time (well, I would if I had anything with
which to populate it!)
I also have a browse button which sets cbo.text.
I'm having two problems and obviously (as always) don't know what I'm
looking for.
What event(s) are fired when I change the cbo.text - as when I insert it
from the folderbrowserdi alogue (need to update the MRU list).
- and -
What event is fired when the user manually enters something and presses
return. I'm seeing nothing ....
If you can tell me how to tell what event is being fired, that would be
even better.
Thanks //al
When the text in a combo box changes, there is a TextChagned event ;)
when the user changes the selected item, there is a SelectedItemCha nged
event.
On 26 Nov 2006 11:27:37 -0800, lo*********@gma il.com wrote:
al jones wrote:
>Okay, I'm probably re-inventing the wheel here, but I have two drop down boxs on a form. One is "source" the other "destinatio n", I'm using a combobox each to provide MRU utility.
The setting I've changed are: AutoCompleteMo de -SuggestAppend AutocompleteSo urce -FileSystemDirec tory Drop[DownStyle -Drop Down Sorted -True
I populate the cbo at form load time (well, I would if I had anything with which to populate it!)
I also have a browse button which sets cbo.text.
I'm having two problems and obviously (as always) don't know what I'm looking for.
What event(s) are fired when I change the cbo.text - as when I insert it from the folderbrowserdi alogue (need to update the MRU list). - and - What event is fired when the user manually enters something and presses return. I'm seeing nothing ....
If you can tell me how to tell what event is being fired, that would be even better.
Thanks //al
When the text in a combo box changes, there is a TextChagned event ;)
when the user changes the selected item, there is a SelectedItemCha nged
event.
Oh, I see, I just had it spelled wrong :)
I've been this round. What I'm seeing is TextChanged is being triggered
with each character entered (or suggestion accepted) [which I can
understand as one might want to do something as each character is
entered...] What I'm now seeing in my mru is "D", "D:", "D:\", etc, not
exactly what I had in mind. However, what I want is to trigger <something>
when they press enter after all the path / folder name has been entered.
I thought that cbox.SelectionC hangeCommitted would be invoked - but even
with a breakpoint on the first line, I don't see it getting fired. Any
ideas what I'm missing here?
.... and I'd really appreciate it if your reply wasn't 'stop wanting that!'
:)
//al
al jones wrote:
>
Oh, I see, I just had it spelled wrong :)
I've been this round. What I'm seeing is TextChanged is being triggered
with each character entered (or suggestion accepted) [which I can
understand as one might want to do something as each character is
entered...] What I'm now seeing in my mru is "D", "D:", "D:\", etc, not
exactly what I had in mind. However, what I want is to trigger <something>
when they press enter after all the path / folder name has been entered.
I thought that cbox.SelectionC hangeCommitted would be invoked - but even
with a breakpoint on the first line, I don't see it getting fired. Any
ideas what I'm missing here?
... and I'd really appreciate it if your reply wasn't 'stop wanting that!'
:)
I just checked, it lookes like the TextChanged event doesn't have any
way of telling you which key was pressed (which makes sense, because
TextChanged can occur due to non-keyboard input). You could listen to
the KeyDown or KeyPress events, because those WILL tell you which key
was pressed (e.keycode or something like that, I forget exactly ;) ).
I don't know if "Enter" key will be a problem or not... it might
trigger other behaviour, but I doubt it.
Refreshing this topic a little. If I change the exit to cbox1.leave then
it depends on the user to use the mouse (or tab) to go to some other box.
I find it hard to believe that MS doesn't have the enter key enabled there
so I'd guess that I'm just missing something.
Now, how do I tell which item they've selected if they select an item from
the dropdown. Reson being, once they've selected / entered / browsed to
the item, then moved out of the cbobox, I'm not displaying anything in the
text area of the combobox ....
//al This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Iain Miller |
last post by:
Struggling a bit here & would be grateful for any help.
I have a table which has a list of people in it. Each person has a unique ID
automatically allocated by Access but also belongs to one of 5 Groups - call
them A to E. I'd like to generate a further automatic reference number based
on something like Group/Unique ID so when I create a new record Access
creates the Unique ID & I then enter in the group and then Access combines
the two...
|
by: Alex.Wisnoski |
last post by:
I have a data entry form with a combo box to look up an entrant's name.
If the name is already in the table then it pulls up the record and
that part of the form works fine. If the name isn't in the table then
I want to be able to add it but this part is not working. I enter a
name that is not in the table and press Enter. I step through the code
and it appears to work until I get to "Exit Sub". At this point a
warning message box...
|
by: Trent |
last post by:
I am in the design phase of a new database and am having a devil of a
time with a subform.
I have three tables that relate to problem - Suppliers tbl, Customers
tbl and a SuppliersCustomers tbl. The intent is to have the user enter
in spend information by customer with each supplier. Sounds simple
enough right?
The common fields in each table are as follows:
|
by: PC Datasheet |
last post by:
I have a form with an unbound combobox at the top and seventeen controls
below it. Is there a simple way to prevent data entry in any of the controls
until a selection is made in the combobox?
Thanks!
Steve
|
by: Tosch |
last post by:
I have a combobox where a user can select a zoom factor or enter a
zoom factor.
I tried to limit entry into the combobox to numbers only by catching
the keydown event and setting e.handled = true if any non number
characters are entered.
But those characters still appear in the combobox. Is this a combobox
bug?
If yes any workarounds?
Tosch
| |
by: Steve B. |
last post by:
Without adding whitespace to the ComboBox datasource is there a way I can add
a blank entry or, a reset entry, to the ComboBox dropdown
Thanks
Steve
|
by: tizmagik |
last post by:
I have a combobox on a continuous form that has a recordsource that is
set upon Form_Load event via VBA (based on initial form data and
external form data entered). For data entry purposes the Combobox's
value is saved to *another* field (text-field) in the appropriate table
(this text-field is not visible in the Continuous Form); so the
combobox is pretty much just for data-lookup purposes (so the user does
not have to type anything).
...
|
by: Richard |
last post by:
Very typical normal data
Table One
------
One.OneID (PK)
One.Name
One.Description
One.TwoID (FK)
One.ThreeID (FK)
....
|
by: Wingot |
last post by:
Hey,
I have a program I am trying to write using Visual C#, SQL Server
2005/2008, and Visual Studio 2008, and one part of it includes a Schema
called Client. Inside this schema, three tables exist named Country,
MedicalCondition, and Customer.
|
by: Maria DiGiano |
last post by:
I am using Access to organize data from a survey which uses a Likert
scale to measure response- the scale is 3 points- "I agree", "I don't
know" and "I disagree". The numerical value of each response (1, 2 or
3) varies- such that for some questions "I agree" is = to 3 points,
and other times "I agree" is = to 1. I created an "answer key" table,
such that each record is a question, and for the fields of "I agree",
"I disagree" and "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: 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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |