Click here to Skip to main content
15,921,884 members
Home / Discussions / C#
   

C#

 
GeneralRe: Point & Pixel Pin
nike_arh4-Apr-08 7:51
nike_arh4-Apr-08 7:51 
General.NET Remoting Pin
CodingYoshi4-Apr-08 7:21
CodingYoshi4-Apr-08 7:21 
GeneralMD5 checksum on unmanaged array Pin
bnb4-Apr-08 6:52
bnb4-Apr-08 6:52 
GeneralRe: MD5 checksum on unmanaged array Pin
CodingYoshi4-Apr-08 7:34
CodingYoshi4-Apr-08 7:34 
GeneralDisplay ArrayList in ListBox Pin
hbez4-Apr-08 5:40
hbez4-Apr-08 5:40 
GeneralRe: Display ArrayList in ListBox Pin
Luc Pattyn4-Apr-08 5:50
sitebuilderLuc Pattyn4-Apr-08 5:50 
GeneralRe: Display ArrayList in ListBox Pin
phannon864-Apr-08 5:53
professionalphannon864-Apr-08 5:53 
GeneralRe: Display ArrayList in ListBox Pin
hbez4-Apr-08 6:08
hbez4-Apr-08 6:08 
Mny thkx so far Smile | :) Here's the code I'm using:

class Student
{
string sName;
string sSurname;
string sID;
bool bGender;
double dAmount;

public Student(string sN, string sS, string sI, bool bG, double dA)
{
sName = sN;
sSurname = sS;
sID = sI;
bGender = bG;
dAmount = dA;
}

public override string ToString()
{
return
string.Format("Name: {0} Surname: {1} ID: {2} Male: {3} Account: {4}",
sName, sSurname, sID, bGender, dAmount);
}
}

private void button3_Click(object sender, EventArgs e) //Click Add button
{
bool g = false;
if (rbBoy.Checked)
g = true; //then it is a boy

//Now add this student to the ArrayList
ArrayList Grade10 = new ArrayList();
Grade10.Add(new Student(txtName.Text, txtSurname.Text, txtID.Text, g,
Convert.ToDouble(txtAmount.Text)));
}

private void button2_Click(object sender, EventArgs e) //Click Show button
{
// ArrayList Grade10 = new ArrayList(); //I'm sure this is cannot be!
foreach (Student i in Grade10)
lbxShow.Items.Add(" " + i);
}

Hannes
GeneralRe: Display ArrayList in ListBox Pin
Luc Pattyn4-Apr-08 6:42
sitebuilderLuc Pattyn4-Apr-08 6:42 
GeneralRe: Display ArrayList in ListBox Pin
hbez4-Apr-08 20:12
hbez4-Apr-08 20:12 
QuestionListView.SelectedIndexChanged fired too much Pin
C-Scharbe4-Apr-08 5:26
C-Scharbe4-Apr-08 5:26 
GeneralRe: ListView.SelectedIndexChanged fired too much Pin
Luc Pattyn4-Apr-08 5:53
sitebuilderLuc Pattyn4-Apr-08 5:53 
GeneralRe: ListView.SelectedIndexChanged fired too much Pin
C-Scharbe4-Apr-08 5:59
C-Scharbe4-Apr-08 5:59 
GeneralRe: ListView.SelectedIndexChanged fired too much Pin
Luc Pattyn4-Apr-08 6:45
sitebuilderLuc Pattyn4-Apr-08 6:45 
GeneralRe: ListView.SelectedIndexChanged fired too much Pin
mav.northwind5-Apr-08 4:16
mav.northwind5-Apr-08 4:16 
GeneralRe: ListView.SelectedIndexChanged fired too much Pin
Luc Pattyn5-Apr-08 4:47
sitebuilderLuc Pattyn5-Apr-08 4:47 
GeneralRe: ListView.SelectedIndexChanged fired too much Pin
C-Scharbe6-Apr-08 22:26
C-Scharbe6-Apr-08 22:26 
GeneralRe: ListView.SelectedIndexChanged fired too much Pin
C-Scharbe6-Apr-08 22:24
C-Scharbe6-Apr-08 22:24 
GeneralRe: ListView.SelectedIndexChanged fired too much Pin
mav.northwind7-Apr-08 7:52
mav.northwind7-Apr-08 7:52 
QuestionRe: ListView.SelectedIndexChanged fired too much Pin
C-Scharbe16-Apr-08 4:20
C-Scharbe16-Apr-08 4:20 
QuestionHow to bind a list to a combobox Pin
baranils4-Apr-08 5:21
baranils4-Apr-08 5:21 
AnswerRe: How to bind a list to a combobox Pin
C-Scharbe4-Apr-08 5:39
C-Scharbe4-Apr-08 5:39 
GeneralRe: How to bind a list to a combobox Pin
baranils4-Apr-08 5:59
baranils4-Apr-08 5:59 
GeneralRe: How to bind a list to a combobox Pin
C-Scharbe4-Apr-08 6:04
C-Scharbe4-Apr-08 6:04 
GeneralRe: How to bind a list to a combobox Pin
baranils4-Apr-08 6:20
baranils4-Apr-08 6:20 

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.