Click here to Skip to main content
15,923,164 members
Home / Discussions / C#
   

C#

 
GeneralRe: Ok You C# People Pin
SHaroz5-Jul-02 6:12
SHaroz5-Jul-02 6:12 
QuestionWindows Explorer like Control ??? Pin
4-Jul-02 0:08
suss4-Jul-02 0:08 
AnswerRe: Windows Explorer like Control ??? Pin
SimonS4-Jul-02 0:42
SimonS4-Jul-02 0:42 
GeneralRe: Windows Explorer like Control ??? Pin
4-Jul-02 4:40
suss4-Jul-02 4:40 
GeneralComboBox SelectedItemChanged event Pin
paulb3-Jul-02 14:11
paulb3-Jul-02 14:11 
GeneralRe: ComboBox SelectedItemChanged event Pin
James T. Johnson3-Jul-02 14:43
James T. Johnson3-Jul-02 14:43 
GeneralRe: ComboBox SelectedItemChanged event Pin
paulb4-Jul-02 13:16
paulb4-Jul-02 13:16 
GeneralListView remove item problem!! Help please Pin
Brandon Parker3-Jul-02 12:19
Brandon Parker3-Jul-02 12:19 
I call this function to remove the last item in a listview in details view. The problem is that the control is on a tab page, and if i call this function before the control has been viewed(ie. before the tab page with this control is shown), this function fails with the inner exception of message "Object reference not set to an instance of an object", and, the regular exception of "unable to create handle". This only happens if the control is not viewed first. Can someone help me out here.
public void RemoveLastItem()
{
int index = Items.Count;

try {
Items.RemoveAt(index-1);
}
catch(OutOfMemoryException e){ // Error is caught here!! Why ????
#if DEBUG
MessageBox.Show(e.InnerException.Message);
#endif
}
catch(NullReferenceException e){
#if DEBUG
MessageBox.Show(e.Message);
#endif
}
}
GeneralRe: ListView remove item problem!! Help please Pin
Orion Buttigieg3-Jul-02 12:44
Orion Buttigieg3-Jul-02 12:44 
GeneralRe: ListView remove item problem!! Help please Pin
Brandon Parker3-Jul-02 13:00
Brandon Parker3-Jul-02 13:00 
GeneralRe: ListView remove item problem!! Help please Pin
James T. Johnson3-Jul-02 14:35
James T. Johnson3-Jul-02 14:35 
GeneralRe: ListView remove item problem!! Help please Pin
Brandon Parker3-Jul-02 15:00
Brandon Parker3-Jul-02 15:00 
GeneralListView Control Pin
Orion Buttigieg3-Jul-02 11:32
Orion Buttigieg3-Jul-02 11:32 
GeneralRe: ListView Control Pin
Brandon Parker3-Jul-02 12:10
Brandon Parker3-Jul-02 12:10 
GeneralRe: ListView Control Pin
Orion Buttigieg3-Jul-02 12:30
Orion Buttigieg3-Jul-02 12:30 
GeneralRe: ListView Control Pin
Brandon Parker3-Jul-02 12:50
Brandon Parker3-Jul-02 12:50 
GeneralRe: ListView Control Pin
Orion Buttigieg3-Jul-02 13:00
Orion Buttigieg3-Jul-02 13:00 
GeneralQOYesterday Pin
Mazdak3-Jul-02 8:55
Mazdak3-Jul-02 8:55 
GeneralRe: QOYesterday Pin
SimonS3-Jul-02 21:55
SimonS3-Jul-02 21:55 
GeneralNeed easy way to write plugin Pin
leppie3-Jul-02 7:49
leppie3-Jul-02 7:49 
GeneralRe: Need easy way to write plugin Pin
James T. Johnson3-Jul-02 9:52
James T. Johnson3-Jul-02 9:52 
GeneralRe: Need easy way to write plugin Pin
leppie3-Jul-02 10:39
leppie3-Jul-02 10:39 
GeneralRe: Need easy way to write plugin Pin
James T. Johnson3-Jul-02 22:33
James T. Johnson3-Jul-02 22:33 
GeneralRe: Need easy way to write plugin Pin
leppie4-Jul-02 0:16
leppie4-Jul-02 0:16 
GeneralRe: Need easy way to write plugin Pin
leppie4-Jul-02 2:19
leppie4-Jul-02 2:19 

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.