|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Q: Cancelling a combo dropdownHi
Is there a way to prevent the combo displaying its list of items when the "combo arrow" is clicked? The problem I'm trying to resolve is that depending on a Boolean value, which is set according to other items on the form, I want to prevent the combo from being used. I suppose I could set the combo to be disabled but I'm wondering if there is something like e.Cancel = True within a combo event which I could use? Thanks in advance I remember I have done this once. You need to extend the combobox
control and override the WndProc method. G .Net wrote: Show quoteHide quote > Hi > > Is there a way to prevent the combo displaying its list of items when the > "combo arrow" is clicked? > > The problem I'm trying to resolve is that depending on a Boolean value, > which is set according to other items on the form, I want to prevent the > combo from being used. I suppose I could set the combo to be disabled but > I'm wondering if there is something like > > e.Cancel = True > > within a combo event which I could use? > > Thanks in advance G .Net wrote:
Show quoteHide quote > Hi If you don't want them to use it, disable it. Why would you need > > Is there a way to prevent the combo displaying its list of items when the > "combo arrow" is clicked? > > The problem I'm trying to resolve is that depending on a Boolean value, > which is set according to other items on the form, I want to prevent the > combo from being used. I suppose I could set the combo to be disabled but > I'm wondering if there is something like > > e.Cancel = True > > within a combo event which I could use? > > Thanks in advance > > something else? Hide it could be an option. Things you can't use that aren't visible help the user to focus on what he can do. -- Rinze van Huizen C-Services Holland b.v
Object reference not set to an instance of an object error
User Control c# to vb.net conversion using the Point object Authenticating to a service my challenges with merging 2 Regex.Matches Schema Information not found in web.config Printdocument.PrintPage cancel current printpage problem 1 - debugging guids main menu style |
|||||||||||||||||||||||