Re: ComboBox will not release focus

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi John,

Have you gotten a fix for this? I'm having the same problem (at least
I think it is) with a combobox on a form, everything works fine if I
don't touch the box, but do anything with it and the rest of the form
stops working. I can min the window, but I can't close out the app.

On Thu, 6 Jul 2006 17:14:02 -0700, JohnMSyrasoft
<JohnMSyrasoft@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Hi, I've got a comboBox that is behaving oddly.
This is a Windows Forms application in VB.NET 2005.

I'm doing some manual databinding to it - I add a row to a strongly typed
dataTable and then assign the DisplayMember and ValueMember properties of the
comboBox as in:

Me.CoInfoDataSet.ACHProviders.AddACHProvidersRow(ACHPROVIDER.WellsFargo,
"Wells Fargo")
For Each row As CoInfoDataSet.ACHProvidersRow In Me.CoInfoDataSet.ACHProviders
Me.ACHProviderComboBox.Items.Add(row)
Next
Me.ACHProviderComboBox.DisplayMember = "Description"
Me.ACHProviderComboBox.ValueMember = "ProviderID"

I have a number of other controls on the form. When I load up, I can move
between controls, including my comboBox without any issue. However, as soon
as I select an item from the comboBox dropdown list, I can't get the focus to
leave the comboBox. This includes using TAB, the mouse, etc. I can't even
close the application through the control box because the comboBox holds the
focus. I have to stop the IDE from debugging the project to shut it down. I
don't have any code in any of the comboBox events. Is this something that
anyone has seen before?

Thanks in advance. Baffled...
.



Relevant Pages

  • Re: New Combobox disabled
    ... By main window, do you mean the Word Application window? ... I meant the UserForm window. ... the UserForm is where the combobox needs to reside... ... And finally, if you want to create a ComboBox and populate it at run-time in a MultiPage, you can use the 'Controls' collection too, of the specified Page. ...
    (microsoft.public.vb.winapi)
  • Re: ComboBox character handling
    ... Use WinMapWindowPoints to convert the combobox ... A combination box is two controls in one: an entry field and a list box. ... Activating PMTree causes the combobox window ...
    (comp.os.os2.programmer.misc)
  • Re: Filter a listbox based on the value of a combobox
    ... and lu_accountroles systemID. ... Set up your cbolusubmitters Combobox for 2 columns... ... row sources of the two controls ... On the AfterUpdate event of cboState, Requery lstCity. ...
    (microsoft.public.access.formscoding)
  • Re: Display Data from Access 2003 DB
    ... I've changed the text box to a combobox and draged the combobox to my form. ... available for selection when the form loads. ... I believe you are using a BindingSource to populate the controls on the ... you may have to do the BindingSource creation again. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Accessing Properties within a Panel
    ... The label controls are sequentially named Channel0 through Channel7, ... and the combobox controls are sequentially named Ch0 through Ch7, ...
    (microsoft.public.dotnet.languages.vb)