Click here to Skip to main content
15,907,183 members
Home / Discussions / C#
   

C#

 
QuestionTabStop Property Creating? Pin
İsmail Durmaz27-May-07 9:37
İsmail Durmaz27-May-07 9:37 
AnswerRe: TabStop Property Creating? Pin
Christian Graus27-May-07 11:54
protectorChristian Graus27-May-07 11:54 
GeneralRe: TabStop Property Creating? Pin
İsmail Durmaz27-May-07 11:59
İsmail Durmaz27-May-07 11:59 
QuestionHow to add more functionality to the “ChangePassword” control ? Pin
tedhill1327-May-07 9:19
tedhill1327-May-07 9:19 
QuestionList classList = new List(); Pin
sharp source27-May-07 7:18
sharp source27-May-07 7:18 
AnswerRe: List classList = new List(); Pin
- Pascal -27-May-07 8:12
- Pascal -27-May-07 8:12 
GeneralRe: List classList = new List(); Pin
sharp source27-May-07 12:42
sharp source27-May-07 12:42 
GeneralRe: List classList = new List(); Pin
- Pascal -28-May-07 2:18
- Pascal -28-May-07 2:18 
Because you were reassigning the properties of the same instance each time. Thats why you got the same object twice in your list because the object is by reference.
With the modification, you'll create a new instance of the object on each iteration and each object in your list will be different because they point at their own reference.

Hope that help Smile | :)

GeneralRe: List classList = new List(); Pin
sharp source29-May-07 7:58
sharp source29-May-07 7:58 
Questionstatic variable or delegates and events ! Pin
Hussam Fattahi27-May-07 4:32
Hussam Fattahi27-May-07 4:32 
AnswerRe: static variable or delegates and events ! Pin
Colin Angus Mackay27-May-07 4:34
Colin Angus Mackay27-May-07 4:34 
AnswerRe: static variable or delegates and events ! Pin
Luc Pattyn27-May-07 5:13
sitebuilderLuc Pattyn27-May-07 5:13 
AnswerRe: static variable or delegates and events ! Pin
Are Jay27-May-07 11:29
Are Jay27-May-07 11:29 
Questionautomation Pin
s_khan_87627-May-07 3:04
s_khan_87627-May-07 3:04 
AnswerRe: automation Pin
Colin Angus Mackay27-May-07 4:33
Colin Angus Mackay27-May-07 4:33 
Jokeyou (like me) cannot understand... Pin
CPallini27-May-07 4:37
mveCPallini27-May-07 4:37 
GeneralRe: you (like me) cannot understand... Pin
Dave Herren27-May-07 4:47
Dave Herren27-May-07 4:47 
GeneralRe: you (like me) cannot understand... Pin
CPallini27-May-07 7:40
mveCPallini27-May-07 7:40 
QuestionwebBrowser navigating event problem Pin
Opa Knack27-May-07 2:40
Opa Knack27-May-07 2:40 
QuestionUsing Resource Files to Store Images C# Pin
Joseph Stanish27-May-07 1:50
Joseph Stanish27-May-07 1:50 
AnswerRe: Using Resource Files to Store Images C# Pin
Colin Angus Mackay27-May-07 4:31
Colin Angus Mackay27-May-07 4:31 
GeneralRe: Using Resource Files to Store Images C# Pin
Joseph Stanish29-May-07 6:11
Joseph Stanish29-May-07 6:11 
QuestionHow to retrieve a row from stored procedure Pin
Mujz.........27-May-07 1:06
Mujz.........27-May-07 1:06 
AnswerRe: How to retrieve a row from stored procedure Pin
Christian Graus27-May-07 1:21
protectorChristian Graus27-May-07 1:21 
Questionhow to read an excel sheet. Pin
Mujz.........27-May-07 1:01
Mujz.........27-May-07 1:01 

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.