Click here to Skip to main content
15,923,789 members
Home / Discussions / C#
   

C#

 
QuestionError in Connection to DataBase Pin
Alireza383922-May-07 15:19
Alireza383922-May-07 15:19 
AnswerRe: Error in Connection to DataBase Pin
Expert Coming22-May-07 15:35
Expert Coming22-May-07 15:35 
GeneralRe: Error in Connection to DataBase Pin
Alireza383922-May-07 15:40
Alireza383922-May-07 15:40 
GeneralRe: Error in Connection to DataBase Pin
Expert Coming22-May-07 19:55
Expert Coming22-May-07 19:55 
GeneralRe: Error in Connection to DataBase Pin
Alireza383922-May-07 20:34
Alireza383922-May-07 20:34 
GeneralRe: Error in Connection to DataBase Pin
Expert Coming22-May-07 20:44
Expert Coming22-May-07 20:44 
QuestionCombine duplicates from an ArrayList Pin
InvalidTypecast22-May-07 15:18
InvalidTypecast22-May-07 15:18 
AnswerRe: Combine duplicates from an ArrayList Pin
Martin#22-May-07 19:40
Martin#22-May-07 19:40 
Hello,

Let me suggest a redesign.

Instead of ArrayList you could use a Hashtable (or Dictonary .Net>1.1).
Your "Value" would be the full instance of the class, and the "Key" would be the productName.
You could than make an "Add" Method which controls if the Key already exist.
If no -> add the instance to the Collection.

If yes -> increase the count of the existing instance.

Hope it helps!

All the best,

Martin
QuestionDirectX ClickEvent? Pin
Expert Coming22-May-07 15:00
Expert Coming22-May-07 15:00 
AnswerRe: DirectX ClickEvent? Pin
andre_swnpl22-May-07 21:24
andre_swnpl22-May-07 21:24 
QuestiondataGridView_DoubleClick Pin
balanjingot22-May-07 14:36
balanjingot22-May-07 14:36 
AnswerRe: dataGridView_DoubleClick Pin
Gopal.S22-May-07 18:27
Gopal.S22-May-07 18:27 
GeneralRe: dataGridView_DoubleClick Pin
balanjingot22-May-07 20:35
balanjingot22-May-07 20:35 
GeneralRe: dataGridView_DoubleClick Pin
Gopal.S22-May-07 21:01
Gopal.S22-May-07 21:01 
GeneralRe: dataGridView_DoubleClick Pin
balanjingot22-May-07 21:35
balanjingot22-May-07 21:35 
QuestionI'm getting demolished by an easy SELECT statement, help. Pin
ThisIsMyUserName222-May-07 14:10
ThisIsMyUserName222-May-07 14:10 
AnswerRe: I'm getting demolished by an easy SELECT statement, help. Pin
kubben22-May-07 14:21
kubben22-May-07 14:21 
GeneralRe: I'm getting demolished by an easy SELECT statement, help. Pin
ThisIsMyUserName222-May-07 14:33
ThisIsMyUserName222-May-07 14:33 
AnswerRe: I'm getting demolished by an easy SELECT statement, help. Pin
Expert Coming22-May-07 14:31
Expert Coming22-May-07 14:31 
GeneralRe: I'm getting demolished by an easy SELECT statement, help. Pin
ThisIsMyUserName222-May-07 14:36
ThisIsMyUserName222-May-07 14:36 
GeneralRe: I'm getting demolished by an easy SELECT statement, help. Pin
Expert Coming22-May-07 14:41
Expert Coming22-May-07 14:41 
GeneralRe: I'm getting demolished by an easy SELECT statement, help. Pin
Expert Coming22-May-07 14:43
Expert Coming22-May-07 14:43 
GeneralRe: I'm getting demolished by an easy SELECT statement, help. Pin
ThisIsMyUserName222-May-07 14:54
ThisIsMyUserName222-May-07 14:54 
GeneralRe: I'm getting demolished by an easy SELECT statement, help. Pin
ThisIsMyUserName222-May-07 14:49
ThisIsMyUserName222-May-07 14:49 
GeneralRe: I'm getting demolished by an easy SELECT statement, help. Pin
Expert Coming22-May-07 14:55
Expert Coming22-May-07 14:55 

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.