D
Donald Smith
Hey, does anyone know how to put this into a switch() statement?
switch(lvLogs.Items.Count)
{
case < 1:
Bitmap myBitmap_Error = new Bitmap(imageList1.Images[0]);
Icon myIcon_Error = Icon.FromHandle(myBitmap_Error.GetHicon());
}
What I want it to do is if lvLogs.Items.Count is less then one, then run my
code. But, It gives me a lot of errors, highlighting "Case < 1". ( ;
exculpated, Invalid expression <, etc.)
Does anyone know how to get around this? Thanks.
switch(lvLogs.Items.Count)
{
case < 1:
Bitmap myBitmap_Error = new Bitmap(imageList1.Images[0]);
Icon myIcon_Error = Icon.FromHandle(myBitmap_Error.GetHicon());
}
What I want it to do is if lvLogs.Items.Count is less then one, then run my
code. But, It gives me a lot of errors, highlighting "Case < 1". ( ;
exculpated, Invalid expression <, etc.)
Does anyone know how to get around this? Thanks.