Click here to Skip to main content
       

C#

 
AnswerRe: Validate XML file against rule in db PinmemberPIEBALDconsult21-Nov-12 8:07 
GeneralRe: Validate XML file against rule in db Pinmemberrahul.net1116-Jan-13 21:01 
QuestionHow to set the distance between checkbox and text in using TreeView ? Pinmembertaibc20-Nov-12 23:26 
AnswerRe: How to set the distance between checkbox and text in using TreeView ? PingroupJay Nardev21-Nov-12 1:03 
GeneralRe: How to set the distance between checkbox and text in using TreeView ? Pinmembertaibc21-Nov-12 15:06 
QuestionHow to fix Error when i using BackgroundWorker in C# Pinmembersonthuy_st20-Nov-12 21:36 
AnswerRe: How to fix Error when i using BackgroundWorker in C# Pinmember@AmitGajjar20-Nov-12 22:04 
GeneralRe: How to fix Error when i using BackgroundWorker in C# Pinmembersonthuy_st20-Nov-12 22:19 
GeneralRe: How to fix Error when i using BackgroundWorker in C# Pinmember@AmitGajjar20-Nov-12 22:22 
AnswerRe: How to fix Error when i using BackgroundWorker in C# Pinmembersirama200420-Nov-12 23:52 
QuestionInvokeRequired [modified] PinmemberMAW3020-Nov-12 16:04 
AnswerRe: InvokeRequired [modified] PinmemberSledgeHammer0120-Nov-12 19:02 
AnswerRe: InvokeRequired PinmemberBMS12122-Nov-12 23:46 
QuestionHow to Query if a ComboBox's AutoComplete Dialog is Open PinmemberSkippums20-Nov-12 15:47 
I created a custom combo box class, which inherits from the built-in System.Windows.Forms.ComboBox class. I changed the AutoCompleteMode property to be AutoCompleteMode.SuggestAppend, which is working just fine. However, I would now like to capture the up & down arrows, only when the auto complete dialog is NOT open, to allow a client to cycle through all of the drop down options without opening the dropdown (in my custom control, the Items property is an empty collection, and my dropdown is done using a ToolStripDropDown).
 
Currently, I have overridden the ProcessCmdKey method, since the KeyDown, KeyUp, and KeyPress events are not being fired once the auto complete dialog has been opened (even if it is closed at a later time). The problem is that I can't figure out how to tell if the auto complete dialog is open. If it is open, I want to use the default behavior implemented in the base class. If not, I want the drop down to cycle through the available options.
 
I have looked through the Windows messages using Spy++, but can't figure out which one is causing the auto complete dialog to open & close. Some of the suspicious ones are (WM_USER + 7441), LB_FINDSTRING, LVM_GETNEXTITEM, and LVM_SETITEMCOUNT when it opens, and LVM_SETITEMSTATE when it closes.
 
Should I watch for these messages within the WndProc override, and maintain a boolean between the LVM_SETITEMCOUNT and LVM_SETITEMSTATE? Should I query all open classes of type ComboLBox (the type that is being displayed in the auto complete; the problem is that the parent is the desktop for this type)? Is there some better way to query whether the auto complete dialog is open?
 
Thanks,
Sounds like somebody's got a case of the Mondays
 
-Jeff

QuestionFull path name of .cs file [modified] PinmemberTheGermoz20-Nov-12 11:35 
AnswerRe: Full path name of .cs file PinmemberGarth J Lancaster20-Nov-12 12:42 
AnswerRe: Full path name of .cs file Pinmemberjschell20-Nov-12 13:24 
AnswerRe: Full path name of .cs file PinmemberPIEBALDconsult20-Nov-12 13:56 
GeneralRe: Full path name of .cs file PinmemberTheGermoz20-Nov-12 18:28 
GeneralRe: Full path name of .cs file PinmemberPIEBALDconsult20-Nov-12 19:06 
GeneralRe: Full path name of .cs file PinmemberTheGermoz20-Nov-12 19:12 
GeneralRe: Full path name of .cs file PinmvpRichard MacCutchan20-Nov-12 22:34 
GeneralRe: Full path name of .cs file PinprotectorPete O'Hanlon20-Nov-12 23:10 
GeneralRe: Full path name of .cs file PinmemberPIEBALDconsult21-Nov-12 4:13 
QuestionHow to create a connection bar for application in wpf mvvm pattern Pinmembervinothezhilan m20-Nov-12 5:47 
Questioniwant to export dataset ot mpp project to mppproject Pinmemberksbaboo20-Nov-12 5:25 
QuestionPossible to print definition of Func<> Pinmemberezazazel20-Nov-12 5:00 
AnswerRe: Possible to print definition of Func<> PinmemberSimon_Whale20-Nov-12 5:14 
GeneralRe: Possible to print definition of Func<> Pinmemberezazazel20-Nov-12 22:43 
Questionhow can i get exception from virtual machine Pinmemberbelea1720-Nov-12 2:38 
AnswerRe: how can i get exception from virtual machine Pinmemberdeflinek20-Nov-12 4:13 
AnswerRe: how can i get exception from virtual machine PinprotectorPete O'Hanlon20-Nov-12 4:17 
QuestionCorrect use of Secure String PinmemberMacUseless19-Nov-12 22:09 
AnswerRe: Correct use of Secure String PinmemberSimon_Whale19-Nov-12 23:08 
GeneralRe: Correct use of Secure String PinmemberMacUseless20-Nov-12 21:42 
QuestionHow to Modifying app.config During Installation Pinmembersathish1719-Nov-12 21:35 
SuggestionRe: How to Modifying app.config During Installation Pinmembern.podbielski20-Nov-12 3:05 
AnswerRe: How to Modifying app.config During Installation PinmemberBobJanova20-Nov-12 6:12 
AnswerRe: How to Modifying app.config During Installation Pinmemberjschell20-Nov-12 13:25 
AnswerRe: How to Modifying app.config During Installation PingroupJay Nardev20-Nov-12 22:50 
QuestionHOW TO SOLVE CRYSTAL REPORT "Load Report Failed" PinmemberMAHAMADLATIF HASAN SANADI19-Nov-12 19:59 
AnswerRe: HOW TO SOLVE CRYSTAL REPORT "Load Report Failed" PinmvpOriginalGriff19-Nov-12 21:45 
QuestionHOW TO CREATE RDLC REPORT IN C# USING SQL 2005 PinmemberMAHAMADLATIF HASAN SANADI19-Nov-12 19:35 
AnswerRe: HOW TO CREATE RDLC REPORT IN C# USING SQL 2005 PinmvpOriginalGriff19-Nov-12 21:45 
AnswerRe: HOW TO CREATE RDLC REPORT IN C# USING SQL 2005 PingroupJay Nardev20-Nov-12 22:57 
Questionc# code to search text/string in word doc and get page number PinmemberNitin Varshneya 219-Nov-12 18:29 
AnswerRe: c# code to search text/string in word doc and get page number PinmvpRichard MacCutchan20-Nov-12 0:11 
GeneralRe: c# code to search text/string in word doc and get page number PinmemberNitin Varshneya 220-Nov-12 0:21 
GeneralRe: c# code to search text/string in word doc and get page number PinmvpRichard MacCutchan20-Nov-12 0:59 
GeneralRe: c# code to search text/string in word doc and get page number PinmemberNitin Varshneya 220-Nov-12 18:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 23 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid