Click here to Skip to main content
16,003,931 members
Home / Discussions / C#
   

C#

 
QuestionGenerics contraints "or?" Pin
Ista24-Aug-06 7:36
Ista24-Aug-06 7:36 
AnswerRe: Generics contraints "or?" Pin
Richard Deeming24-Aug-06 8:41
mveRichard Deeming24-Aug-06 8:41 
AnswerCreate a higher interface Pin
Ennis Ray Lynch, Jr.24-Aug-06 9:13
Ennis Ray Lynch, Jr.24-Aug-06 9:13 
AnswerRe: Generics contraints "or?" Pin
Judah Gabriel Himango24-Aug-06 10:14
sponsorJudah Gabriel Himango24-Aug-06 10:14 
Questionhtml file parsing help Pin
pokabot24-Aug-06 6:39
pokabot24-Aug-06 6:39 
AnswerRe: html file parsing help Pin
Dustin Metzgar24-Aug-06 10:14
Dustin Metzgar24-Aug-06 10:14 
AnswerRe: html file parsing help Pin
coolestCoder24-Aug-06 20:52
coolestCoder24-Aug-06 20:52 
QuestionListView.Items.Add(....) problem Pin
thunderbirdje24-Aug-06 6:20
thunderbirdje24-Aug-06 6:20 
Hi
When I'm trying to Add something to my ListvView (multiple columns), I receive this strange error in debug mode:

A first chance exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll


The code (*):

lstProps.Items.Add(new ListViewItem(new string[] {"one", "two" }));

Which resides in private void receivedIt(RemovableStorage r, EventArgs e).

The strange thing is that the same code (*) does work in the Form_Load method, or some Botton_Click method! Am I doing something totally wrong? Confused | :confused:

I am searching for 2 days now and all the online samples are doing the same - and I'm getting a bit of dissapointed in the ListView control Frown | :( Hopefully someone can help me?

Thanks a lot!
AnswerRe: ListView.Items.Add(....) problem Pin
Richard Deeming24-Aug-06 8:50
mveRichard Deeming24-Aug-06 8:50 
GeneralRe: ListView.Items.Add(....) problem Pin
thunderbirdje25-Aug-06 4:07
thunderbirdje25-Aug-06 4:07 
QuestionCompiling a program through Source Code of another Program Pin
zaigham_chaudhry24-Aug-06 6:06
zaigham_chaudhry24-Aug-06 6:06 
AnswerRe: Compiling a program through Source Code of another Program Pin
Dustin Metzgar24-Aug-06 10:11
Dustin Metzgar24-Aug-06 10:11 
Questiona little problem with MenuItem, Pin
vedmack24-Aug-06 5:23
vedmack24-Aug-06 5:23 
AnswerRe: a little problem with MenuItem, Pin
MoustafaS24-Aug-06 6:26
MoustafaS24-Aug-06 6:26 
GeneralRe: a little problem with MenuItem, Pin
vedmack24-Aug-06 20:34
vedmack24-Aug-06 20:34 
QuestionC#.net with system process Pin
xiaowenjie24-Aug-06 5:17
xiaowenjie24-Aug-06 5:17 
AnswerRe: C#.net with system process Pin
Judah Gabriel Himango24-Aug-06 5:41
sponsorJudah Gabriel Himango24-Aug-06 5:41 
GeneralRe: C#.net with system process Pin
thunderbirdje24-Aug-06 6:30
thunderbirdje24-Aug-06 6:30 
Questionone to many class association Pin
chacimulch24-Aug-06 4:57
chacimulch24-Aug-06 4:57 
AnswerRe: one to many class association Pin
beatles169224-Aug-06 5:26
beatles169224-Aug-06 5:26 
Questionnot working still. Re: one to many class association [modified] Pin
chacimulch24-Aug-06 8:43
chacimulch24-Aug-06 8:43 
AnswerRe: not working still. Re: one to many class association Pin
beatles169224-Aug-06 21:05
beatles169224-Aug-06 21:05 
QuestionHelp with syntax. Re: one to many class association Pin
chacimulch25-Aug-06 2:36
chacimulch25-Aug-06 2:36 
AnswerRe: Help with syntax. Re: one to many class association Pin
beatles169225-Aug-06 3:03
beatles169225-Aug-06 3:03 
QuestionRe: Help with syntax. Re: one to many class association [modified] Pin
chacimulch25-Aug-06 3:51
chacimulch25-Aug-06 3:51 

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.