Click here to Skip to main content
15,912,578 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionFormat 34 to 034 (3 digits) Pin
grahamoj25-Mar-09 2:34
grahamoj25-Mar-09 2:34 
AnswerRe: Format 34 to 034 (3 digits) Pin
Thomas Krojer25-Mar-09 2:49
Thomas Krojer25-Mar-09 2:49 
AnswerRe: Format 34 to 034 (3 digits) Pin
Anubhava Dimri31-Mar-09 0:57
Anubhava Dimri31-Mar-09 0:57 
Questionwant to read the next line of thecomma delimited text file Pin
Lee Mwangi25-Mar-09 2:18
Lee Mwangi25-Mar-09 2:18 
AnswerRe: want to read the next line of thecomma delimited text file Pin
Tom Deketelaere25-Mar-09 2:45
professionalTom Deketelaere25-Mar-09 2:45 
QuestionRe: want to read the next line of thecomma delimited text file Pin
Lee Mwangi27-Mar-09 21:01
Lee Mwangi27-Mar-09 21:01 
QuestionAdding task to a combobox and running it as a queue list Pin
Quin Nee25-Mar-09 2:07
Quin Nee25-Mar-09 2:07 
AnswerRe: Adding task to a combobox and running it as a queue list [modified] Pin
Dave Kreskowiak25-Mar-09 5:03
mveDave Kreskowiak25-Mar-09 5:03 
Simple - you don't. A combobox was designed to show a list of display values, not maintain a queue. If you really need a queue, there's a Queue collection in the System.Collections and System.Collections.Generic namespaces.

The only problem is that you can't bind the combobox to the queue. You can, however, create an array that IS bindable by calling the queue's ToArray method and binding the combo to the resulting array.

Another alternative is to create your own custom collection that uses a queue internally, but also exposes itself as bindable by implementing the IList interface[^]. (Sorry, IBindingList won't work with the ComboBox)


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




modified on Wednesday, March 25, 2009 12:18 PM

QuestionRe: Adding task to a combobox and running it as a queue list Pin
Quin Nee27-Mar-09 8:10
Quin Nee27-Mar-09 8:10 
AnswerRe: Adding task to a combobox and running it as a queue list Pin
Dave Kreskowiak27-Mar-09 11:46
mveDave Kreskowiak27-Mar-09 11:46 
QuestionRe: Adding task to a combobox and running it as a queue list Pin
Quin Nee2-Apr-09 6:16
Quin Nee2-Apr-09 6:16 
AnswerRe: Adding task to a combobox and running it as a queue list Pin
Dave Kreskowiak2-Apr-09 15:04
mveDave Kreskowiak2-Apr-09 15:04 
GeneralRe: Adding task to a combobox and running it as a queue list Pin
Quin Nee2-Apr-09 22:33
Quin Nee2-Apr-09 22:33 
GeneralRe: Adding task to a combobox and running it as a queue list Pin
Quin Nee3-Apr-09 1:01
Quin Nee3-Apr-09 1:01 
QuestionVS 2008 Team edition Pin
Moe200925-Mar-09 0:13
Moe200925-Mar-09 0:13 
AnswerRe: VS 2008 Team edition Pin
Ashfield25-Mar-09 2:17
Ashfield25-Mar-09 2:17 
GeneralRe: VS 2008 Team edition Pin
Moe200925-Mar-09 2:37
Moe200925-Mar-09 2:37 
GeneralRe: VS 2008 Team edition Pin
Smithers-Jones25-Mar-09 3:16
Smithers-Jones25-Mar-09 3:16 
GeneralRe: VS 2008 Team edition Pin
0x3c025-Mar-09 9:24
0x3c025-Mar-09 9:24 
GeneralRe: VS 2008 Team edition Pin
Ashfield25-Mar-09 9:12
Ashfield25-Mar-09 9:12 
Questionwant to Display Upper Case Letters in Text Box while Pressing Lower Case Letters, How? Pin
pramod251724-Mar-09 23:31
pramod251724-Mar-09 23:31 
AnswerRe: want to Display Upper Case Letters in Text Box while Pressing Lower Case Letters, How? Pin
Anoop Brijmohun25-Mar-09 0:19
Anoop Brijmohun25-Mar-09 0:19 
Questiondownload file from server error Pin
Anoop Brijmohun24-Mar-09 21:27
Anoop Brijmohun24-Mar-09 21:27 
AnswerRe: download file from server error Pin
Dave Kreskowiak25-Mar-09 4:33
mveDave Kreskowiak25-Mar-09 4:33 
GeneralRe: download file from server error Pin
Anoop Brijmohun27-Mar-09 1:54
Anoop Brijmohun27-Mar-09 1:54 

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.