Click here to Skip to main content
15,912,756 members
Home / Discussions / C#
   

C#

 
GeneralRe: Can't make array class data shown in a label Pin
Albert8324-Jan-06 19:32
Albert8324-Jan-06 19:32 
GeneralPlease disregard the previous exception in the previous message Pin
Albert8324-Jan-06 20:01
Albert8324-Jan-06 20:01 
GeneralRe: Please disregard the previous exception in the previous message Pin
Garry Stewart24-Jan-06 21:07
Garry Stewart24-Jan-06 21:07 
GeneralRe: Please disregard the previous exception in the previous message Pin
Albert8325-Jan-06 15:11
Albert8325-Jan-06 15:11 
GeneralRe: Can't make array class data shown in a label Pin
Albert8325-Jan-06 16:30
Albert8325-Jan-06 16:30 
GeneralRe: Can't make array class data shown in a label Pin
Garry Stewart25-Jan-06 16:39
Garry Stewart25-Jan-06 16:39 
GeneralRe: Can't make array class data shown in a label Pin
Albert8325-Jan-06 16:39
Albert8325-Jan-06 16:39 
GeneralRe: Can't make array class data shown in a label Pin
Albert8325-Jan-06 16:48
Albert8325-Jan-06 16:48 
I tried to override ToString but it doesn't see label1 in this function. Do you know why? Also I remove the clas Athlete from the program there is only person class, and the form.

public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
private System.ComponentModel.Container components = null;

public Form1()
{
InitializeComponent();
}
}
public class Person
{
public Person(int age, double height, double weight, string bankName, double bankAccount, double balance)
{
this.age = age;
this.height = height;
this.weight = weight;
this.bankName = bankName;
this.bankAccount = bankAccount;
this.balance = balance;
}
public override string ToString()
{
Person[] person = new Person[3];
person[0] = new Person();
person[0].Age = 22;
label1. -////// no properties shown

return "";

}
}

-- modified at 22:48 Wednesday 25th January, 2006
GeneralRe: Can't make array class data shown in a label Pin
Garry Stewart25-Jan-06 16:59
Garry Stewart25-Jan-06 16:59 
GeneralRe: Can't make array class data shown in a label Pin
Albert8325-Jan-06 17:19
Albert8325-Jan-06 17:19 
Questioncopy Pin
quarinteen23-Jan-06 14:49
quarinteen23-Jan-06 14:49 
AnswerRe: copy Pin
Dave Kreskowiak23-Jan-06 15:32
mveDave Kreskowiak23-Jan-06 15:32 
QuestionPlease Solve with me this network Problem Pin
snouto23-Jan-06 12:50
snouto23-Jan-06 12:50 
AnswerRe: Please Solve with me this network Problem Pin
Dave Kreskowiak23-Jan-06 15:28
mveDave Kreskowiak23-Jan-06 15:28 
AnswerRe: Please Solve with me this network Problem Pin
Garry Stewart23-Jan-06 20:35
Garry Stewart23-Jan-06 20:35 
Questioninvoke codefile from a path embedded in XML? Pin
mattica23-Jan-06 12:19
mattica23-Jan-06 12:19 
AnswerRe: invoke codefile from a path embedded in XML? Pin
snouto23-Jan-06 12:56
snouto23-Jan-06 12:56 
GeneralRe: invoke codefile from a path embedded in XML? Pin
mattica23-Jan-06 18:15
mattica23-Jan-06 18:15 
GeneralRe: invoke codefile from a path embedded in XML? Pin
lmoelleb23-Jan-06 21:32
lmoelleb23-Jan-06 21:32 
Questionkeyboard sequence Pin
quasi478523-Jan-06 11:54
quasi478523-Jan-06 11:54 
QuestionTurn of word wrapping on labels Pin
dbrenth23-Jan-06 10:52
dbrenth23-Jan-06 10:52 
AnswerRe: Turn of word wrapping on labels Pin
tarasn23-Jan-06 11:42
tarasn23-Jan-06 11:42 
AnswerRe: Turn of word wrapping on labels Pin
microsoc23-Jan-06 15:15
microsoc23-Jan-06 15:15 
AnswerRe: Turn of word wrapping on labels Pin
Dan Neely24-Jan-06 2:08
Dan Neely24-Jan-06 2:08 
GeneralRe: Turn of word wrapping on labels Pin
dbrenth24-Jan-06 5:29
dbrenth24-Jan-06 5:29 

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.