G
Guest
I have started an earlier thread about this topic. I got some good info but
I'm still confused. I'm trying to add a complex number object that contains a
real and a imaninary double to a listbox. But I want the listbox to show a
string that describes the number. e. g. 4 +j5
this.memoryListBox.Items.Add(result.ToString());
this line adds the string just like the example but not the actual refrence
to the complex class object, which is what I need to add so I can use it
again to do math with it.
This line adds the complex number object but it doesn't show the number in
the list for the user.
this.memoryListBox.Items.Add(complexNumber);
How do I show a different obect than is stored?
I'm still confused. I'm trying to add a complex number object that contains a
real and a imaninary double to a listbox. But I want the listbox to show a
string that describes the number. e. g. 4 +j5
this.memoryListBox.Items.Add(result.ToString());
this line adds the string just like the example but not the actual refrence
to the complex class object, which is what I need to add so I can use it
again to do math with it.
This line adds the complex number object but it doesn't show the number in
the list for the user.
this.memoryListBox.Items.Add(complexNumber);
How do I show a different obect than is stored?