Click here to Skip to main content
15,910,787 members
Home / Discussions / C#
   

C#

 
GeneralRe: small problem Pin
leppie21-Jun-05 10:21
leppie21-Jun-05 10:21 
GeneralRe: small problem Pin
IamJunk21-Jun-05 19:30
IamJunk21-Jun-05 19:30 
Generalflow chart generator Pin
bobballi@usa.net21-Jun-05 8:23
bobballi@usa.net21-Jun-05 8:23 
QuestionSocket.Select() Bug? Pin
obelisk2921-Jun-05 7:46
obelisk2921-Jun-05 7:46 
AnswerRe: Socket.Select() Bug? Pin
leppie21-Jun-05 10:45
leppie21-Jun-05 10:45 
GeneralWritting to a ListBox from another class Pin
cmacgowan21-Jun-05 7:45
cmacgowan21-Jun-05 7:45 
GeneralRe: Writting to a ListBox from another class Pin
S. Senthil Kumar21-Jun-05 8:34
S. Senthil Kumar21-Jun-05 8:34 
GeneralRe: Writting to a ListBox from another class Pin
IamJunk21-Jun-05 17:36
IamJunk21-Jun-05 17:36 
The problem I can see with your code is...

When you are trying to add elements to the listbox, you are creating a new instance of your form object. this will never point to the current form being displayed. So even if you call add(), it will add to the listbox on the form which is never displayed.

Instead, you have to get the reference to the existing form and then call add method.

Hope this helps!!!


Regards,
Sidhu


IF YOU DON'T HAVE ANYTHING TO SAY, WELCOME TO THE CLUB


Dotnet @ Work Where Dotnet works...

My Blog
GeneralRe: Writting to a ListBox from another class Pin
cmacgowan22-Jun-05 7:17
cmacgowan22-Jun-05 7:17 
Generaltelnetting to a router Pin
reveal21-Jun-05 7:06
reveal21-Jun-05 7:06 
GeneralRe: telnetting to a router Pin
reveal21-Jun-05 7:07
reveal21-Jun-05 7:07 
GeneralRemoting thru firewalls Pin
Judah Gabriel Himango21-Jun-05 6:21
sponsorJudah Gabriel Himango21-Jun-05 6:21 
GeneralRe: Remoting thru firewalls Pin
DeepToot21-Jun-05 14:55
DeepToot21-Jun-05 14:55 
GeneralPassing special characters in a string Pin
CheckDude21-Jun-05 5:49
CheckDude21-Jun-05 5:49 
GeneralRe: Passing special characters in a string Pin
IamJunk21-Jun-05 6:02
IamJunk21-Jun-05 6:02 
GeneralRe: Passing special characters in a string Pin
mav.northwind21-Jun-05 6:58
mav.northwind21-Jun-05 6:58 
GeneralRe: Passing special characters in a string Pin
CheckDude21-Jun-05 16:08
CheckDude21-Jun-05 16:08 
QuestionHow do i create a savestate? Pin
Anthony Mushrow21-Jun-05 5:48
professionalAnthony Mushrow21-Jun-05 5:48 
AnswerRe: How do i create a savestate? Pin
IamJunk21-Jun-05 6:05
IamJunk21-Jun-05 6:05 
GeneralSecure Conversation doesn't work with second web service Pin
Member 186329021-Jun-05 5:07
Member 186329021-Jun-05 5:07 
GeneralMultiple connections Pin
Micu Radu21-Jun-05 4:53
Micu Radu21-Jun-05 4:53 
GeneralRe: Multiple connections Pin
CheckDude21-Jun-05 5:36
CheckDude21-Jun-05 5:36 
GeneralRe: Multiple connections Pin
Luis Alonso Ramos21-Jun-05 17:16
Luis Alonso Ramos21-Jun-05 17:16 
GeneralRe: Multiple connections Pin
Micu Radu24-Jun-05 0:29
Micu Radu24-Jun-05 0:29 
GeneralRe: Multiple connections Pin
Luis Alonso Ramos24-Jun-05 6:17
Luis Alonso Ramos24-Jun-05 6:17 

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.