473,657 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

KeyDown not firing in Toolbar Combobox

I am developing an IE Toolbar that has a combo box. The combox box doesn't
fire the KeyDown event when the {Backspace} key is pressed. Very strange. The
event fires for {Delete}, {Space}, {CTRL}, etc. Does it have something to do
with {Backspace} being the hot key for going to the previous page?
Code:
this.cboSearch. KeyDown += new KeyEventHandler (this.cboSearch _KeyDown);

private void cboSearch_KeyDo wn (object sender, KeyEventArgs e)
{
MessageBox.Show ("key down");

}
Jul 21 '05 #1
0 1443

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

Similar topics

1
3429
by: Lauren Quantrell | last post by:
Is there a way to determine the value of a combobox that resides in a toolbar other than using CommandBars.ActionControl? I want a user to be able to change the combobox and be able to refer to the selected value later, not immediately, and without having to set a public variable. This refers to the toolbar when adding a combobox to the toolbar: CommandBars("myToolbarName").Controls.Add(Type:=msoControlComboBox) But what referes to the...
1
2079
by: lauren quantrell | last post by:
I use the following code to create a combobox in a toolbar: 'You must set a reference to the Microsoft Office x.0 Object Library to run this code! Dim newcombo Set newcombo = CommandBars("MyToolbarName").Controls.Add(Type:=msoControlComboBox) With newcombo .AddItem "(Prompt User)Select an Item fro the List:" .AddItem "-----------------------------" .AddItem "Item Three"
6
3117
by: Juan Pedro Gonzalez | last post by:
I wanted to add a Combobox to a toolbar... Kind of the look you get on VisualStudio's toolbar. I've been able to find some VB 6 samples, but the placeholder option is no longer available for ToolbarButtons... Does anyone know how this could be done? Looking forward to hear from you,
1
1008
by: ucasesoftware | last post by:
I have a 2 tabpage : tapPage 1 : one combobox with a keydown event : Private Sub cbClients_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles cbClients.KeyDown If e.KeyValue = System.Windows.Forms.Keys.Return Then messagebox("Hello") end if
0
332
by: CoderOfBugs | last post by:
I am developing an IE Toolbar that has a combo box. The combox box doesn't fire the KeyDown event when the {Backspace} key is pressed. Very strange. The event fires for {Delete}, {Space}, {CTRL}, etc. Does it have something to do with {Backspace} being the hot key for going to the previous page? Code: this.cboSearch.KeyDown += new KeyEventHandler(this.cboSearch_KeyDown); private void cboSearch_KeyDown (object sender, KeyEventArgs e)
0
1011
by: Eddie | last post by:
Hi All, I'm having a little problem with the KeyDown event handler. I have added a keydown event handler to my Form, but the ToolBar control is overriding it. So say I press the arrow keys, rather then doing what I want it to do, it simply circulates through the buttons on the ToolBar. How can I by pass this? Thanks, Eddie
1
2138
by: mookid8000 | last post by:
Hello again, group! Can someone tell me a nice way to include a zoom percentage combobox in a toolbar? My first try was a workaround, where I inserted a bunch of separators where I wanted the combobox to be, and then painted the combobox on top. I'm just thinking, there must be a better way... :o)
5
4656
by: Joe | last post by:
Hi I am adding a class to a ComboBox - and all is fine except that I fill the combobox on the Form_Load Method and it causes the method private void comboBox2_SelectedIndexChanged(object sender, EventArgs e) To fire twice Once when I comboBox2.DataSource = allMonths; And again when I execute comboBox2.DisplayMember = "Name";
2
1629
by: mart_nl | last post by:
Dear group, I am trying to move a panel (panel2) around which is inside another panel (panel1). I want the user to be able to use the arrow keys on the keyboard. However when I press either arrow key, focus is set to my toolbar (toolbar1) and you see focus going from pushbutton to pushbutton. I've tried keydown events on mybase, panel1, panel2 and finally only
0
8326
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,...
0
8845
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, 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...
0
8743
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 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...
1
8522
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,...
0
8622
tracyyun
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...
1
6177
isladogs
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...
0
4333
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1973
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1736
bsmnconsultancy
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...

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.