Click here to Skip to main content
15,914,010 members
Home / Discussions / C#
   

C#

 
GeneralVertical text in a DataGrid column header Pin
quilkin12-Jun-04 13:11
quilkin12-Jun-04 13:11 
GeneralRe: Vertical text in a DataGrid column header Pin
Heath Stewart12-Jun-04 18:13
protectorHeath Stewart12-Jun-04 18:13 
GeneralToolbar that doesn't steal focus Pin
David M. Kean12-Jun-04 12:54
David M. Kean12-Jun-04 12:54 
QuestionDll? Pin
SherKar12-Jun-04 12:36
SherKar12-Jun-04 12:36 
AnswerRe: Dll? Pin
Heath Stewart12-Jun-04 18:00
protectorHeath Stewart12-Jun-04 18:00 
GeneralAssemblies in .NET Pin
richard nixon12-Jun-04 10:13
richard nixon12-Jun-04 10:13 
GeneralRe: Assemblies in .NET Pin
Heath Stewart12-Jun-04 10:28
protectorHeath Stewart12-Jun-04 10:28 
Generalunhandled exeption in ListView Pin
Aron Henning12-Jun-04 5:23
Aron Henning12-Jun-04 5:23 
I have a ListView that contains the subfoldes of a local drive.
Whan i click on a subfolder the listbox should display the subfolders of
this folder instead.
the funktion is as follows:

private void FolderList_SelectedIndexChanged(object sender, System.EventArgs e)
{
try
{
ListView.SelectedListViewItemCollection SelectedDir = this.FolderList.SelectedItems;
foreach ( ListViewItem Dir in SelectedDir )
{
FolderList.Items.Clear();
foreach (string d in Directory.GetDirectories(Dir.Text))
{
FolderList.Items.Add(d);
}
}
}
catch
{
MessageBox.Show("Error entering directory","Error",MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}

Now when i try to access the folder "System Volume Information" I first get
my MessageBox and then a messagebox saying that I have an unhandled
exeption.
But the funny thing is that I only get this message in the release version.
Can annyboddy tel me what I do rong?

The exeption text is as follows:

************** Exception Text **************
System.ArgumentOutOfRangeException: Specified argument was out of the range
of valid values.
Parameter name: '5' is not a valid value for 'displayIndex'.
at System.Windows.Forms.ListViewItemCollection.get_Item(Int32
displayIndex)
at System.Windows.Forms.ListView.LvnBeginDrag(MouseButtons buttons,
NMLISTVIEW nmlv)
at System.Windows.Forms.ListView.WmReflectNotify(Message& m)
at System.Windows.Forms.ListView.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
GeneralRe: unhandled exeption in ListView Pin
leppie12-Jun-04 5:41
leppie12-Jun-04 5:41 
GeneralCONTROLLING PROCESSES Pin
_Comet_Keeper_12-Jun-04 4:52
_Comet_Keeper_12-Jun-04 4:52 
GeneralRe: CONTROLLING PROCESSES Pin
Heath Stewart12-Jun-04 5:00
protectorHeath Stewart12-Jun-04 5:00 
GeneralRe: CONTROLLING PROCESSES Pin
_Comet_Keeper_12-Jun-04 10:07
_Comet_Keeper_12-Jun-04 10:07 
GeneralRe: CONTROLLING PROCESSES Pin
Heath Stewart12-Jun-04 10:34
protectorHeath Stewart12-Jun-04 10:34 
GeneralBandwidth usage info Pin
Liskl12-Jun-04 2:19
Liskl12-Jun-04 2:19 
GeneralRe: Bandwidth usage info Pin
Heath Stewart12-Jun-04 4:47
protectorHeath Stewart12-Jun-04 4:47 
GeneralNewbish Question on Child/Parent Issues Pin
Anonymous11-Jun-04 23:39
Anonymous11-Jun-04 23:39 
GeneralRe: Newbish Question on Child/Parent Issues Pin
bneacetp12-Jun-04 0:45
bneacetp12-Jun-04 0:45 
GeneralRe: Newbish Question on Child/Parent Issues Pin
Heath Stewart12-Jun-04 5:10
protectorHeath Stewart12-Jun-04 5:10 
GeneralTimeZone problem Pin
Andy *M*11-Jun-04 23:34
Andy *M*11-Jun-04 23:34 
GeneralRe: TimeZone problem Pin
Dave Kreskowiak12-Jun-04 2:08
mveDave Kreskowiak12-Jun-04 2:08 
GeneralRe: TimeZone problem Pin
Andy *M*12-Jun-04 2:58
Andy *M*12-Jun-04 2:58 
GeneralRe: TimeZone problem Pin
Heath Stewart12-Jun-04 5:07
protectorHeath Stewart12-Jun-04 5:07 
GeneralSending message to a window Pin
DavidR_r11-Jun-04 21:50
DavidR_r11-Jun-04 21:50 
GeneralRe: Sending message to a window Pin
Anonymous11-Jun-04 23:33
Anonymous11-Jun-04 23:33 
GeneralRe: Sending message to a window Pin
Heath Stewart12-Jun-04 5:03
protectorHeath Stewart12-Jun-04 5:03 

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.