Cool. Nice job!
"Peter Foot [MVP]" <feedback@no-spam.inthehand.com> wrote in message
news:uAaJY3IrEHA.3324@TK2MSFTNGP15.phx.gbl...
> Thats just the ticket! Setting it twice works.
>
> I put together a number of ComboBox "bug-fixes" into a ComboBoxEx class -
> posted the code to my blog here:-
>
http://blog.opennetcf.org/pfoot/PermaLink.aspx?guid=dd0fe46e-dd82-428c-9982-323ef182f25c >
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
>
www.inthehand.com |
www.opennetcf.org >
> Do have an opinion on the effectiveness of Microsoft Windows Mobile and
> Embedded newsgroups? Let us know!
>
https://www.windowsembeddedeval.com/community/newsgroups >
> "Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message
> news:%23$dKMrIrEHA.3876@TK2MSFTNGP15.phx.gbl...
> >I don't know if you've already seen this information, or if it even
applies
> > in this case since it's related to the full framework, but I'll pass it
> > along anyways...
> >
http://support.microsoft.com/default.aspx?scid=kb;en-us;327244 > >
> > --
> > Tim Wilson
> > .Net Compact Framework MVP
> >
> > "Jon Skeet [C# MVP]" <skeet@pobox.com> wrote in message
> > news:MPG.1bcf5643ae50e68598b614@msnews.microsoft.com...
> >> I've got two combo boxes which are somewhat linked - the second one is
> >> only valid if the first one has a certain value.
> >>
> >> When I change the first one to a different value, I want to deselect
> >> whatever's in the second box, leaving it blank. It's definitely
> >> possible, because the databinding does is when we first enter the form
> >> - the value is DBNull, and it manages to clear the box.
> >>
> >> According to the docs, setting the SelectedIndex to -1 should do it -
> >> but it doesn't. It just sets the index to 0 instead. However, bizarrely
> >> enough, setting the SelectedIndex from the command window in the
> >> debugger does exactly the right thing.
> >>
> >> Any suggestions as to what might be going on?
> >>
> >> --
> >> Jon Skeet - <skeet@pobox.com>
> >>
http://www.pobox.com/~skeet
> >> If replying to the group, please do not mail me too
> >
> >
>
>