Click here to Skip to main content
15,906,626 members
Home / Discussions / C#
   

C#

 
GeneralRe: Arraylist problem!!! Pin
Programm3r21-Sep-09 20:09
Programm3r21-Sep-09 20:09 
GeneralRe: Arraylist problem!!! Pin
Luc Pattyn22-Sep-09 1:16
sitebuilderLuc Pattyn22-Sep-09 1:16 
GeneralRe: Arraylist problem!!! Pin
Programm3r22-Sep-09 1:27
Programm3r22-Sep-09 1:27 
AnswerRe: Arraylist problem!!! Pin
Calla21-Sep-09 20:27
Calla21-Sep-09 20:27 
AnswerRe: Arraylist problem!!! Pin
Programm3r21-Sep-09 20:30
Programm3r21-Sep-09 20:30 
GeneralRe: Arraylist problem!!! Pin
bounik21-Sep-09 21:48
bounik21-Sep-09 21:48 
AnswerRe: Arraylist problem!!! Pin
bounik21-Sep-09 21:42
bounik21-Sep-09 21:42 
AnswerRe: Arraylist problem!!! Pin
Calla21-Sep-09 22:21
Calla21-Sep-09 22:21 
But if I read your code correctly (and I'm sorry, but it's a bit hard when you don't use the pre tags and have chosen names that doesn't make any sense if you don't speak turkish(?)) this is what happens when you click button3:

1. You create a new bt object.
2. You call the silgi method on that object.

At this point your bt object's member silici does not contain any items. It's just an empty List and when you try to remove an item from that empty list you get the exception thrown.

I think you need to do some reading when it comes to objects and the creation of new objects. Are you sure you want to create 3 different buton objects, or is your intention to create one bt object and add things to its "silici" List?
GeneralRe: Arraylist problem!!! Pin
bounik21-Sep-09 22:36
bounik21-Sep-09 22:36 
GeneralRe: Arraylist problem!!! Pin
Calla21-Sep-09 22:41
Calla21-Sep-09 22:41 
AnswerRe: Arraylist problem!!! Pin
OriginalGriff21-Sep-09 22:33
mveOriginalGriff21-Sep-09 22:33 
GeneralRe: Arraylist problem!!! Pin
bounik21-Sep-09 22:46
bounik21-Sep-09 22:46 
GeneralRe: Arraylist problem!!! Pin
Amit Patel198521-Sep-09 23:23
Amit Patel198521-Sep-09 23:23 
QuestionExport and save dataset to excel Pin
kdwarak21-Sep-09 17:41
kdwarak21-Sep-09 17:41 
AnswerRe: Export and save dataset to excel Pin
Programm3r21-Sep-09 20:24
Programm3r21-Sep-09 20:24 
GeneralRe: Export and save dataset to excel Pin
kdwarak22-Sep-09 1:16
kdwarak22-Sep-09 1:16 
GeneralRe: Export and save dataset to excel Pin
Programm3r22-Sep-09 1:26
Programm3r22-Sep-09 1:26 
AnswerRe: Export and save dataset to excel Pin
Amit Patel198521-Sep-09 23:35
Amit Patel198521-Sep-09 23:35 
QuestionIs it possible to reconnect an event without raising it? Pin
CBenac21-Sep-09 13:19
CBenac21-Sep-09 13:19 
AnswerRe: Is it possible to reconnect an event without raising it? Pin
Gideon Engelberth21-Sep-09 15:54
Gideon Engelberth21-Sep-09 15:54 
GeneralRe: Is it possible to reconnect an event without raising it? Pin
CBenac22-Sep-09 8:30
CBenac22-Sep-09 8:30 
QuestionHow to start a NamedPipeClientStream and a NamedPipeServerStream together Pin
AndyASPVB21-Sep-09 13:19
AndyASPVB21-Sep-09 13:19 
AnswerRe: How to start a NamedPipeClientStream and a NamedPipeServerStream together Pin
Michael Eber22-Sep-09 19:15
Michael Eber22-Sep-09 19:15 
QuestionSilverlight replace elements app Pin
User 602357121-Sep-09 11:14
User 602357121-Sep-09 11:14 
AnswerRe: Silverlight replace elements app Pin
Henry Minute21-Sep-09 11:35
Henry Minute21-Sep-09 11:35 

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.