Click here to Skip to main content
15,881,938 members
Home / Discussions / C#
   

C#

 
AnswerRe: .NET Pin
User 665821-Apr-06 2:36
User 665821-Apr-06 2:36 
GeneralRe: .NET Pin
_Tom_22-Apr-06 9:31
_Tom_22-Apr-06 9:31 
Questionhow to configure .net project Pin
ranandbe21-Apr-06 2:18
ranandbe21-Apr-06 2:18 
AnswerRe: how to configure .net project Pin
Dave Kreskowiak21-Apr-06 7:24
mveDave Kreskowiak21-Apr-06 7:24 
Questionhashtable question Pin
spin vector21-Apr-06 1:57
spin vector21-Apr-06 1:57 
AnswerRe: hashtable question Pin
Guffa21-Apr-06 2:15
Guffa21-Apr-06 2:15 
GeneralRe: hashtable question Pin
spin vector21-Apr-06 2:30
spin vector21-Apr-06 2:30 
GeneralRe: hashtable question Pin
Paul Brower21-Apr-06 3:34
Paul Brower21-Apr-06 3:34 
Once a hashtable record is created, you don't want to change the key. Changing the value is fine though. Sometimes whan I need a quick and easy list of objects, I'll create a hashtable and just use hash.count as the key. Here is an example of how you could deal with changing values from a hashtable:

Hashtable hash = new Hashtable() ;
for (int i = 0; i <=10; i++)
{
hash.Add(i,"something") ;
}
//we now have 11 objects in the hashtable
int counter = 0 ;
//we do this, because hashtables don't guarantee that you'll
//get object out in the same order you put them in
for (int i = 0; i <= 10; i ++)
{
hash[i] = "new object" ;
//this will modify the VALUE, not the KEY
}

//if you don't care about the order you're getting objects out of the hashtable
//you can enumerate them like this:
IDictionaryEnumerator enumr = hash.GetEnumerator() ;
while (enumr.MoveNext())
{
object theKey = enumr.Key ;
object theValue = enumr.Value ;
//you could change the value here
enumr.Value = "new value" ;
}


-- modified at 9:35 Friday 21st April, 2006
AnswerRe: hashtable question Pin
wout de zeeuw21-Apr-06 2:28
wout de zeeuw21-Apr-06 2:28 
GeneralRe: hashtable question Pin
spin vector21-Apr-06 2:32
spin vector21-Apr-06 2:32 
GeneralRe: hashtable question Pin
Robert Rohde21-Apr-06 2:49
Robert Rohde21-Apr-06 2:49 
QuestionShow picture from Database into Grid? Pin
superdragon21-Apr-06 1:32
superdragon21-Apr-06 1:32 
AnswerRe: Show picture from Database into Grid? Pin
Vasudevan Deepak Kumar21-Apr-06 2:02
Vasudevan Deepak Kumar21-Apr-06 2:02 
Questioncopy file using WMI Pin
arunpnet21-Apr-06 1:08
arunpnet21-Apr-06 1:08 
AnswerRe: copy file using WMI Pin
Dave Kreskowiak21-Apr-06 7:20
mveDave Kreskowiak21-Apr-06 7:20 
Questionhow to convert COM Object to string in asp.net web application Pin
narendrakumarp21-Apr-06 0:59
narendrakumarp21-Apr-06 0:59 
AnswerRe: how to convert COM Object to string in asp.net web application Pin
alexey N21-Apr-06 1:33
alexey N21-Apr-06 1:33 
AnswerRe: how to convert COM Object to string in asp.net web application Pin
J4amieC21-Apr-06 1:44
J4amieC21-Apr-06 1:44 
GeneralRe: how to convert COM Object to string in asp.net web application Pin
narendrakumarp21-Apr-06 2:09
narendrakumarp21-Apr-06 2:09 
AnswerRe: how to convert COM Object to string in asp.net web application Pin
alexey N21-Apr-06 2:04
alexey N21-Apr-06 2:04 
GeneralRe: how to convert COM Object to string in asp.net web application Pin
narendrakumarp21-Apr-06 2:21
narendrakumarp21-Apr-06 2:21 
GeneralRe: how to convert COM Object to string in asp.net web application Pin
Dave Kreskowiak21-Apr-06 6:57
mveDave Kreskowiak21-Apr-06 6:57 
Questionaccessing VB6 exe functions in C# Pin
shezh21-Apr-06 0:22
shezh21-Apr-06 0:22 
AnswerRe: accessing VB6 exe functions in C# Pin
Dave Kreskowiak21-Apr-06 7:02
mveDave Kreskowiak21-Apr-06 7:02 
QuestionHow to block shortcuts Pin
alexey N20-Apr-06 22:45
alexey N20-Apr-06 22:45 

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.