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

C#

 
AnswerRe: how can i write functions in String class without using any tools? Pin
PIEBALDconsult7-Jul-08 14:31
mvePIEBALDconsult7-Jul-08 14:31 
AnswerRe: how can i write functions in String class without using any tools? Pin
PIEBALDconsult8-Jul-08 4:47
mvePIEBALDconsult8-Jul-08 4:47 
Questionhelp regarding populating grid values to form Pin
tasumisra7-Jul-08 6:50
tasumisra7-Jul-08 6:50 
AnswerRe: help regarding populating grid values to form Pin
Christian Graus7-Jul-08 6:52
protectorChristian Graus7-Jul-08 6:52 
GeneralRe: help regarding populating grid values to form Pin
tasumisra7-Jul-08 6:59
tasumisra7-Jul-08 6:59 
GeneralRe: help regarding populating grid values to form Pin
Christian Graus7-Jul-08 8:39
protectorChristian Graus7-Jul-08 8:39 
QuestionAdding Item to ListBox from another class Pin
MAW307-Jul-08 6:49
MAW307-Jul-08 6:49 
AnswerRe: Adding Item to ListBox from another class Pin
Christian Graus7-Jul-08 6:54
protectorChristian Graus7-Jul-08 6:54 
Looks to me like you need to do some reading on how OO works. Creating a new Class1, means exactly that. C1 has NOTHING to do with any other Class1 instance that is already running in your code. C1 will indeed add that item. But, it's not visible anywhere, so why would you see it ? A DIFFERENT Class1 instance continues to show the items that it has.

The correct way to deal with this is to set up delegates between the two classes. This needs to be done outside the constructor, obviously.

Christian Graus

Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.

GeneralRe: Adding Item to ListBox from another class Pin
Paul Conrad7-Jul-08 8:26
professionalPaul Conrad7-Jul-08 8:26 
GeneralRe: Adding Item to ListBox from another class Pin
MAW307-Jul-08 9:44
MAW307-Jul-08 9:44 
AnswerRe: Adding Item to ListBox from another class Pin
Xmen Real 7-Jul-08 7:09
professional Xmen Real 7-Jul-08 7:09 
Questionstatic field initialization Pin
humayunlalzad7-Jul-08 6:15
humayunlalzad7-Jul-08 6:15 
AnswerRe: static field initialization Pin
Xmen Real 7-Jul-08 6:31
professional Xmen Real 7-Jul-08 6:31 
AnswerRe: static field initialization Pin
Giorgi Dalakishvili7-Jul-08 6:35
mentorGiorgi Dalakishvili7-Jul-08 6:35 
AnswerRe: static field initialization Pin
User 66587-Jul-08 6:53
User 66587-Jul-08 6:53 
GeneralRe: static field initialization Pin
humayunlalzad7-Jul-08 7:21
humayunlalzad7-Jul-08 7:21 
GeneralRe: static field initialization Pin
User 66587-Jul-08 7:34
User 66587-Jul-08 7:34 
Questiongenerate a Console.Readline Pin
Martijn van Kleef7-Jul-08 6:06
Martijn van Kleef7-Jul-08 6:06 
AnswerRe: generate a Console.Readline Pin
leppie7-Jul-08 6:35
leppie7-Jul-08 6:35 
Questionparsing associated program path from registry ? Pin
Xmen Real 7-Jul-08 5:45
professional Xmen Real 7-Jul-08 5:45 
AnswerRe: parsing associated program path from registry ? Pin
led mike7-Jul-08 5:49
led mike7-Jul-08 5:49 
GeneralRe: parsing associated program path from registry ? Pin
Xmen Real 7-Jul-08 6:15
professional Xmen Real 7-Jul-08 6:15 
AnswerRe: parsing associated program path from registry ? Pin
PIEBALDconsult7-Jul-08 15:43
mvePIEBALDconsult7-Jul-08 15:43 
GeneralRe: parsing associated program path from registry ? Pin
Xmen Real 7-Jul-08 17:00
professional Xmen Real 7-Jul-08 17:00 
GeneralRe: parsing associated program path from registry ? Pin
PIEBALDconsult7-Jul-08 18:31
mvePIEBALDconsult7-Jul-08 18:31 

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.