Good morning
I've not found an event that notify me when drop-down part of a BomboBox is
closed. OnDropDown just notify when the drop-down is displayed, not when it
is closed.
Is there a message in WndProc that can be used to intercept a drop-down
closing?
Thank you very much.
Carlo
-------------------------------------------
Carlo, MCP (Windows Based Applications) ca************@ gmail.com 5 3692
"Carlo" <ca************ @gmail.com> schrieb: I've not found an event that notify me when drop-down part of a BomboBox is closed. OnDropDown just notify when the drop-down is displayed, not when it is closed.
Is there a message in WndProc that can be used to intercept a drop-down closing?
Listen for 'WM_COMMAND' of the parent window and check if 'wParam''s
high-order word is 'CBN_CLOSEUP'.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Hello Herfried,
thank you for your help.
The problem is that I don't have a parent window available (do you means
parent form?) because I'm working on a control that inherits from
System.Windows. Forms.ComboBox.
I checked all messages raised by WndProc of my ComboBox, but I've seen any
WM_COMMAND.
Carlo
-------------------------------------------
Carlo, MCP (Windows Based Applications) ca************@ gmail.com
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> ha scritto nel
messaggio news:uB******** *****@TK2MSFTNG P10.phx.gbl... "Carlo" <ca************ @gmail.com> schrieb: I've not found an event that notify me when drop-down part of a BomboBox is closed. OnDropDown just notify when the drop-down is displayed, not when it is closed.
Is there a message in WndProc that can be used to intercept a drop-down closing?
Listen for 'WM_COMMAND' of the parent window and check if 'wParam''s high-order word is 'CBN_CLOSEUP'.
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:uB******** *****@TK2MSFTNG P10.phx.gbl... "Carlo" <ca************ @gmail.com> schrieb: I've not found an event that notify me when drop-down part of a BomboBox is closed. OnDropDown just notify when the drop-down is displayed, not when it is closed.
Is there a message in WndProc that can be used to intercept a drop-down closing?
Listen for 'WM_COMMAND' of the parent window and check if 'wParam''s high-order word is 'CBN_CLOSEUP'.
--
No need to use the parent window. All WM_COMMAND and WM_NOTIFY
messages are reflected to the control itself. Use this: http://groups.google.se/group/micros...581d8d1f?hl=sv
/claes
This is exactly what I was searching for!
Thank you to Herfried and thank you to Claes.
Carlo
-------------------------------------------
Carlo, MCP (Windows Based Applications) ca************@ gmail.com
"Claes Bergefall" <cl************ *@nospam.com> ha scritto nel messaggio
news:%2******** ********@TK2MSF TNGP15.phx.gbl. .. "Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message news:uB******** *****@TK2MSFTNG P10.phx.gbl... "Carlo" <ca************ @gmail.com> schrieb: > I've not found an event that notify me when drop-down part of a > BomboBox > is closed. OnDropDown just notify when the drop-down is displayed, not > when it is closed. > > Is there a message in WndProc that can be used to intercept a drop-down > closing?
Listen for 'WM_COMMAND' of the parent window and check if 'wParam''s high-order word is 'CBN_CLOSEUP'.
--
No need to use the parent window. All WM_COMMAND and WM_NOTIFY messages are reflected to the control itself. Use this:
http://groups.google.se/group/micros...581d8d1f?hl=sv
/claes
"Claes Bergefall" <cl************ *@nospam.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. .. "Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message news:uB******** *****@TK2MSFTNG P10.phx.gbl... "Carlo" <ca************ @gmail.com> schrieb: I've not found an event that notify me when drop-down part of a
BomboBox is closed. OnDropDown just notify when the drop-down is displayed, not when it is closed.
Is there a message in WndProc that can be used to intercept a
drop-down closing? Listen for 'WM_COMMAND' of the parent window and check if 'wParam''s high-order word is 'CBN_CLOSEUP'.
--
No need to use the parent window. All WM_COMMAND and WM_NOTIFY messages are reflected to the control itself. Use this:
http://groups.google.se/group/micros...581d8d1f?hl=sv
/claes
Just an addition. The above solution requires that you inherit the combobox
If you, for some reason, don't want to inherit it, use Herfried's suggestion
(the parent being the Form/Panel/whatever that the combobox is placed on)
/claes This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Nicolae Fieraru |
last post by:
Hi All,
I am trying to change the rowsource of a combobox when I click on it. I
played with many events, associated with the form and the combobox, but
still haven't figured out what is the way of doing it.
I have a table with products, tblProducts, some of them are Active while
others are Inactive.
The form shows all the products purchased by a customer, both Active and
Inactive in a ComboBox, cbProducts.
My client wants to view all...
|
by: kate sporks |
last post by:
I have the following issue with a ComboBox, specifically a dropdown list.
When the dropdown is shown, the items spill over the right edge of the
screen. Basically, the dropdown is about 30 pixels too wide. I have no
option to change where the combobox is. It must be on the right side for
usability reasons (with the exception of a left-handed user).
Ideally, what I would love to be able to do is make the drop down rectangle
shift over...
|
by: Norm Katz |
last post by:
When you use a bound combobox and you set its dropdown style to "dropdown"
that allows you to enter text in the edit box. But if you enter anything
other than a value in the current bound items collection, the .text property
does not update. Furthermore, you can't easily trap an event to examine the
new value if your program assigns it programmatically as opposed to someone
typing it in and tabbing away from it. That is, TextChanged does...
|
by: Peter Stojkovic |
last post by:
VB 7.1 and windows.forms.
I have a comboBox on a form.
When the user goes with TAB-Key to the comboBox,
the comboBox should dropDown the ListBox automatically
and show ALL entries.
The user has no possibility to use a mouse !!
How can I program a automatic dropDown ( Showing all entries ),
if the user tabs to the comboBox ???
|
by: Peter Proost |
last post by:
Hi I have made my own control with a dropdown functionality like a combobox
and it works just great, but I've got one problem remaining. If you put a
combobox on a panel and press the little arrow the dropdown part enlarges
outside the bounds of the panel. How can I achieve this for my own
usercontrol? My usercontrol is a textbox with on it's right side a button
and if you click the button a datagrid becomes visible below the textbox,
but...
| |
by: Gil |
last post by:
Is there a way to tell if a combbox is in dropdown mode.
I tried and if statement combobox.dropdown = true
but i get an error. dropwndown function doesnt store if its true or
false
what i am trying to do is make an autoscroll combobox. like you have on
html textbox's, but this time you hit enter for a change to be made. i
do this because i dont want to requery every time a single letter is
inputed. it would be too slow. so i make them hit...
|
by: AccessRookie |
last post by:
Ok, I am pretty new to Access (Using Access 2002 at my job). Here is
what I want to do.
I want to create a database that has a form. On this form will be a
dropdown menu (combobox). Depending on what you select in the first
drop down box, another dropdown box will be populated with specific
info based upon what was selected in the first box.
For example:
The first drop down box has "Breakfast" "Lunch" and "Dinner" as a
|
by: Vidhura |
last post by:
My application contains 2 tabpages.The second tabpage contains panel .The panel contains series of combobox and textboxes.
If the item not selected in combobox and the user click on the another tabpage,it should show "The option from dropdown should be selected" and focus the combo .I have did this in validating event
it works fine till focusing the combo.If I again try to select the combo which is focused,the dropdown of the combo is...
|
by: Andrus |
last post by:
SWF DataGridView contains combobox control.
Activating combobox and pressing F4 to open dropdown menu causes strange NRE
(see below).
When I enter some valid value to combobox, press tab, shift+tab , 44
dropdown menu opens OK.
How to fix ?
How to use VCSE 2008 with .net framework source code to find the line in
|
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: 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: 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: 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: 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: 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: 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.
| |
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...
| |