Click here to Skip to main content
15,885,933 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to fix Error when i using BackgroundWorker in C# Pin
AmitGajjar20-Nov-12 21:04
professionalAmitGajjar20-Nov-12 21:04 
GeneralRe: How to fix Error when i using BackgroundWorker in C# Pin
Alviss_H20-Nov-12 21:19
Alviss_H20-Nov-12 21:19 
GeneralRe: How to fix Error when i using BackgroundWorker in C# Pin
AmitGajjar20-Nov-12 21:22
professionalAmitGajjar20-Nov-12 21:22 
AnswerRe: How to fix Error when i using BackgroundWorker in C# Pin
Sivaraman Dhamodharan20-Nov-12 22:52
Sivaraman Dhamodharan20-Nov-12 22:52 
QuestionInvokeRequired Pin
MAW3020-Nov-12 15:04
MAW3020-Nov-12 15:04 
AnswerRe: InvokeRequired Pin
SledgeHammer0120-Nov-12 18:02
SledgeHammer0120-Nov-12 18:02 
AnswerRe: InvokeRequired Pin
Braj_1222-Nov-12 22:46
Braj_1222-Nov-12 22:46 
QuestionHow to Query if a ComboBox's AutoComplete Dialog is Open Pin
Skippums20-Nov-12 14:47
Skippums20-Nov-12 14: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 Pin
PozzaVecia20-Nov-12 10:35
PozzaVecia20-Nov-12 10:35 
AnswerRe: Full path name of .cs file Pin
Garth J Lancaster20-Nov-12 11:42
professionalGarth J Lancaster20-Nov-12 11:42 
AnswerRe: Full path name of .cs file Pin
jschell20-Nov-12 12:24
jschell20-Nov-12 12:24 
AnswerRe: Full path name of .cs file Pin
PIEBALDconsult20-Nov-12 12:56
mvePIEBALDconsult20-Nov-12 12:56 
GeneralRe: Full path name of .cs file Pin
PozzaVecia20-Nov-12 17:28
PozzaVecia20-Nov-12 17:28 
GeneralRe: Full path name of .cs file Pin
PIEBALDconsult20-Nov-12 18:06
mvePIEBALDconsult20-Nov-12 18:06 
GeneralRe: Full path name of .cs file Pin
PozzaVecia20-Nov-12 18:12
PozzaVecia20-Nov-12 18:12 
GeneralRe: Full path name of .cs file Pin
Richard MacCutchan20-Nov-12 21:34
mveRichard MacCutchan20-Nov-12 21:34 
GeneralRe: Full path name of .cs file Pin
Pete O'Hanlon20-Nov-12 22:10
mvePete O'Hanlon20-Nov-12 22:10 
GeneralRe: Full path name of .cs file Pin
PIEBALDconsult21-Nov-12 3:13
mvePIEBALDconsult21-Nov-12 3:13 
QuestionHow to create a connection bar for application in wpf mvvm pattern Pin
vinothezhilan m20-Nov-12 4:47
vinothezhilan m20-Nov-12 4:47 
Questioniwant to export dataset ot mpp project to mppproject Pin
ksbaboo20-Nov-12 4:25
ksbaboo20-Nov-12 4:25 
QuestionPossible to print definition of Func<> Pin
ezazazel20-Nov-12 4:00
ezazazel20-Nov-12 4:00 
AnswerRe: Possible to print definition of Func<> Pin
Simon_Whale20-Nov-12 4:14
Simon_Whale20-Nov-12 4:14 
GeneralRe: Possible to print definition of Func<> Pin
ezazazel20-Nov-12 21:43
ezazazel20-Nov-12 21:43 
Questionhow can i get exception from virtual machine Pin
belea1720-Nov-12 1:38
belea1720-Nov-12 1:38 
AnswerRe: how can i get exception from virtual machine Pin
Deflinek20-Nov-12 3:13
Deflinek20-Nov-12 3:13 

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

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