Click here to Skip to main content
15,891,431 members
Home / Discussions / C#
   

C#

 
GeneralRe: how can i write functions in String class without using any tools? [modified] Pin
PIEBALDconsult7-Jul-08 13:50
mvePIEBALDconsult7-Jul-08 13:50 
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 
I am trying to add an item to a list box from another class. I can add an item from within the same class with no problem, but when I try to add it from another class nothing happens even though when I folow it through it goes through all of the code. Can someone tell me how to resolve this problem (see below).

Thanks in advance,
Michael



Class1
{
buttonAddItem()
{
AddItem(); // Adding and item to my listbox works here.
}

public void AddItem()
{
this.ListBox.BeginUpdate();
this.ListBox.Items.Add(“AAA”);
this.logListBox.EndUpdate();
}
}

Class2
{
Class1 C1 = new Class1();
C1.AddItem(); // Adding from C2 to C1 does not work.
}
AnswerRe: Adding Item to ListBox from another class Pin
Christian Graus7-Jul-08 6:54
protectorChristian Graus7-Jul-08 6:54 
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 

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.