Click here to Skip to main content
15,913,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# windows Timer question... Pin
new_phoenix1-Feb-05 5:34
new_phoenix1-Feb-05 5:34 
GeneralClass problem Pin
thepersonof29-Jan-05 5:44
thepersonof29-Jan-05 5:44 
GeneralRe: Class problem Pin
Robert Rohde29-Jan-05 7:13
Robert Rohde29-Jan-05 7:13 
GeneralI need to control device volum Pin
FedorMatv29-Jan-05 3:02
FedorMatv29-Jan-05 3:02 
GeneralRemoting Configuration Files and the new Operator Pin
STW28-Jan-05 21:31
STW28-Jan-05 21:31 
GeneralIs it possible to create a treeview control that have owner draw scrollbar Pin
god4k28-Jan-05 20:55
god4k28-Jan-05 20:55 
GeneralLINK ERROR 1181: beginner quest. Pin
...---...28-Jan-05 16:09
...---...28-Jan-05 16:09 
GeneralHashTable access question Pin
pkellner28-Jan-05 14:00
pkellner28-Jan-05 14:00 
I have a simple HashTable defined that has a few objects in it as follows:

HashTable myHashTable = new HashTable();
Queue q12 = new Queue();
Queue q22 = new Queue();
Queue q33 = new Queue();
myHashTable.Add("A",q12);
myHashTable.Add("G",q22);
myHashTable.Add("K",q33);


How can I directly retrieve the 2nd queue (or the nth queue) in this list. Here is what
I tried that does not work

int n=1;
Queue myNthQueue = (Queue)

DictionaryEntry myEntry = (DictionaryEntry) userHashTable[n];
Queue whichQueueToPopFrom = (Queue) myEntry.Value;
string whichQueueToPopFromName = (string) myEntry.Key;

This compiles, but complains about nulls and does not work.

Any suggestions would be appreciated.

GeneralRe: HashTable access question Pin
Robert Rohde28-Jan-05 19:28
Robert Rohde28-Jan-05 19:28 
GeneralRe: HashTable access question Pin
pkellner29-Jan-05 2:57
pkellner29-Jan-05 2:57 
GeneralRe: HashTable access question Pin
Robert Rohde29-Jan-05 6:44
Robert Rohde29-Jan-05 6:44 
Generalproblems with sockets programming over the internet Pin
Member 132576628-Jan-05 12:59
Member 132576628-Jan-05 12:59 
GeneralRe: problems with sockets programming over the internet Pin
pkellner28-Jan-05 14:14
pkellner28-Jan-05 14:14 
GeneralRe: problems with sockets programming over the internet Pin
Member 132576628-Jan-05 14:33
Member 132576628-Jan-05 14:33 
GeneralRe: problems with sockets programming over the internet Pin
pkellner28-Jan-05 14:36
pkellner28-Jan-05 14:36 
GeneralRe: problems with sockets programming over the internet Pin
Member 132576628-Jan-05 14:38
Member 132576628-Jan-05 14:38 
GeneralRe: problems with sockets programming over the internet Pin
pkellner28-Jan-05 14:47
pkellner28-Jan-05 14:47 
Generalhelp with autocompletion in textbox!!! Pin
tom_dx28-Jan-05 12:49
tom_dx28-Jan-05 12:49 
Questionhow often should lock(List.SyncRoot) be used in a collection? Pin
FocusedWolf28-Jan-05 11:45
FocusedWolf28-Jan-05 11:45 
GeneralOdd textbox editing behavior Pin
Susan Hernandez28-Jan-05 10:39
Susan Hernandez28-Jan-05 10:39 
GeneralRe: Odd textbox editing behavior Pin
Dave Kreskowiak28-Jan-05 12:30
mveDave Kreskowiak28-Jan-05 12:30 
GeneralRe: Odd textbox editing behavior Pin
Susan Hernandez28-Jan-05 12:54
Susan Hernandez28-Jan-05 12:54 
GeneralRe: Odd textbox editing behavior Pin
Skynyrd28-Jan-05 13:42
Skynyrd28-Jan-05 13:42 
GeneralExtend Button With DropDown Pin
Dominic Farr28-Jan-05 10:38
Dominic Farr28-Jan-05 10:38 
GeneralRe: Extend Button With DropDown Pin
Susan Hernandez28-Jan-05 10:47
Susan Hernandez28-Jan-05 10:47 

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.