Click here to Skip to main content
15,893,668 members
Home / Discussions / C#
   

C#

 
GeneralRe: .NET grid control? Pin
Domenic Denicola16-Nov-02 16:35
Domenic Denicola16-Nov-02 16:35 
GeneralRe: .NET grid control? Pin
James T. Johnson16-Nov-02 17:47
James T. Johnson16-Nov-02 17:47 
GeneralOne event, two different controls Pin
Paul Watson16-Nov-02 3:07
sitebuilderPaul Watson16-Nov-02 3:07 
GeneralRe: One event, two different controls Pin
leppie16-Nov-02 3:47
leppie16-Nov-02 3:47 
GeneralRe: One event, two different controls Pin
Paul Watson16-Nov-02 3:52
sitebuilderPaul Watson16-Nov-02 3:52 
GeneralRe: One event, two different controls Pin
leppie16-Nov-02 6:48
leppie16-Nov-02 6:48 
GeneralRe: How about WINAPI-SendMessage? Pin
Masaaki Onishi16-Nov-02 5:42
Masaaki Onishi16-Nov-02 5:42 
Generalfile list and list box problem Pin
djkno315-Nov-02 12:16
djkno315-Nov-02 12:16 
I have a problem displaying an array of files in a listbox
my code for the array is:

string[] files = openFileDlg.FileNames;

and I looked up the bestway to add multiple files to a listbox and came up with this:

lstFiles.Items.AddRange(files);

the problem is that my last file when added this way is lost. I also tried setting the datasource to files:

lstFiles.DataSource = files;

but that did not work either. And forced redraw and reinitilization of the list box evertime my OpenFileDialog was called. My problem I think has to do with improper indexing of files... I say this because I cannot select one file and have it display (it comes up blank) but if I try to open it again it is there. So once my files array first becomes initilized it works.

I'm sorry if this question has been asked before but it's late and I have been searching the newsgroups and MSDN and just can't seem to find the answer... Thanks for your help

GeneralRe: file list and list box problem Pin
David Stone15-Nov-02 12:29
sitebuilderDavid Stone15-Nov-02 12:29 
GeneralRe: file list and list box problem Pin
djkno316-Nov-02 0:54
djkno316-Nov-02 0:54 
GeneralRe: file list and list box problem Pin
David Stone17-Nov-02 17:28
sitebuilderDavid Stone17-Nov-02 17:28 
QuestionHow to ignore events? Pin
Delegate15-Nov-02 8:27
Delegate15-Nov-02 8:27 
AnswerRe: How to ignore events? Pin
David Stone15-Nov-02 9:15
sitebuilderDavid Stone15-Nov-02 9:15 
AnswerRe: How to ignore events? Pin
Mark Conger15-Nov-02 9:16
Mark Conger15-Nov-02 9:16 
AnswerRe: How to ignore events? Pin
Martin Haesemeyer16-Nov-02 1:05
Martin Haesemeyer16-Nov-02 1:05 
GeneralRe: How to ignore events? Pin
Delegate18-Nov-02 6:46
Delegate18-Nov-02 6:46 
GeneralSocket.SetOption throw an exception on NT4 Pin
Sebastien Curutchet14-Nov-02 23:18
Sebastien Curutchet14-Nov-02 23:18 
GeneralMore DataGrid hassles. Pin
Christian Graus14-Nov-02 22:22
protectorChristian Graus14-Nov-02 22:22 
GeneralRe: More DataGrid hassles. Pin
Christian Graus14-Nov-02 22:37
protectorChristian Graus14-Nov-02 22:37 
GeneralRe: More DataGrid hassles. Pin
Mazdak16-Nov-02 5:36
Mazdak16-Nov-02 5:36 
GeneralRe: More DataGrid hassles. Pin
Christian Graus16-Nov-02 10:29
protectorChristian Graus16-Nov-02 10:29 
Questionhow to call a window application? Pin
Segal14-Nov-02 21:09
Segal14-Nov-02 21:09 
Generalpass an array from C# to a COM object Pin
gharrison14-Nov-02 21:05
gharrison14-Nov-02 21:05 
GeneralRe: pass an array from C# to a COM object Pin
Oleksandr Kucherenko15-Nov-02 3:21
Oleksandr Kucherenko15-Nov-02 3:21 
Questionusing "this"? Pin
zhoujun14-Nov-02 19:08
zhoujun14-Nov-02 19:08 

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.