Click here to Skip to main content
15,912,072 members
Home / Discussions / C#
   

C#

 
GeneralRe: Another textbox question Pin
OriginalGriff25-Aug-12 23:30
mveOriginalGriff25-Aug-12 23:30 
GeneralRe: Another textbox question Pin
Diego Carrion26-Aug-12 7:43
Diego Carrion26-Aug-12 7:43 
QuestionConverting textbox into textarea. Pin
Diego Carrion25-Aug-12 16:16
Diego Carrion25-Aug-12 16:16 
AnswerRe: Converting textbox into textarea. Pin
OriginalGriff25-Aug-12 22:26
mveOriginalGriff25-Aug-12 22:26 
GeneralRe: Converting textbox into textarea. Pin
Diego Carrion25-Aug-12 22:36
Diego Carrion25-Aug-12 22:36 
GeneralRe: Converting textbox into textarea. Pin
BillWoodruff26-Aug-12 15:36
professionalBillWoodruff26-Aug-12 15:36 
GeneralRe: Converting textbox into textarea. Pin
Diego Carrion27-Aug-12 16:31
Diego Carrion27-Aug-12 16:31 
QuestionStoring File Path on Database Pin
ASPnoob25-Aug-12 14:34
ASPnoob25-Aug-12 14:34 
AnswerRe: Storing File Path on Database Pin
AmitGajjar25-Aug-12 22:20
professionalAmitGajjar25-Aug-12 22:20 
AnswerRe: Storing File Path on Database Pin
OriginalGriff25-Aug-12 22:34
mveOriginalGriff25-Aug-12 22:34 
QuestionRe: Storing File Path on Database Pin
Eddy Vluggen25-Aug-12 23:34
professionalEddy Vluggen25-Aug-12 23:34 
AnswerRe: Storing File Path on Database Pin
ASPnoob26-Aug-12 0:27
ASPnoob26-Aug-12 0:27 
GeneralRe: Storing File Path on Database Pin
Eddy Vluggen26-Aug-12 0:40
professionalEddy Vluggen26-Aug-12 0:40 
QuestionChange Combobox Look in WPF Pin
a.fatemeh25-Aug-12 9:24
a.fatemeh25-Aug-12 9:24 
AnswerRe: Change Combobox Look in WPF Pin
Abhinav S25-Aug-12 18:31
Abhinav S25-Aug-12 18:31 
QuestionIndexers Pin
ripples24-Aug-12 23:59
ripples24-Aug-12 23:59 
AnswerRe: Indexers Pin
Wes Aday25-Aug-12 0:12
professionalWes Aday25-Aug-12 0:12 
AnswerRe: Indexers Pin
DaveyM6925-Aug-12 0:37
professionalDaveyM6925-Aug-12 0:37 
AnswerRe: Indexers Pin
PIEBALDconsult25-Aug-12 4:40
mvePIEBALDconsult25-Aug-12 4:40 
AnswerRe: Indexers Pin
Richard MacCutchan25-Aug-12 7:07
mveRichard MacCutchan25-Aug-12 7:07 
ripples wrote:
I am new to C# so pardon my mistakes.
Your first mistake is trying to use an advanced technique before you are fully acquainted with the basics. In your main() method you are creating a new list e1, every time the user selects option 1, and adding some information into it. You then break out of that case block and e1 goes out of scope and is disposed (i.e all information is thrown away). If the user selects option 2 you create a different new object e2, and call the method to display its contents, but since you have not added anything into it there is no information to display. I would suggest going back to your notes and spending some time learning about creating and using objects. A good tutorial can be found in .NET Book Zero[^] by Charles Petzold.
One of these days I'm going to think of a really clever signature.

GeneralRe: Indexers Pin
ripples25-Aug-12 8:52
ripples25-Aug-12 8:52 
Questioncan this be done without using 'dynamic: build a list of KeyValuePairs, where each item's Type varies ? Pin
BillWoodruff24-Aug-12 20:31
professionalBillWoodruff24-Aug-12 20:31 
AnswerRe: can this be done without using 'dynamic: build a list of KeyValuePairs, where each item's Type varies ? Pin
DaveyM6925-Aug-12 0:13
professionalDaveyM6925-Aug-12 0:13 
GeneralRe: can this be done without using 'dynamic: build a list of KeyValuePairs, where each item's Type varies ? Pin
BillWoodruff25-Aug-12 11:25
professionalBillWoodruff25-Aug-12 11:25 
AnswerRe: could this be done without dynamic Pin
Martijn Kok25-Aug-12 0:59
Martijn Kok25-Aug-12 0:59 

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.