TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
An
NA
1
0
Different problems with my application
Mar 10 2008 7:09 AM
Hi
1)
I'm trying to display a list in a listbox. But I only see the last entered item in the listbox.
This is my code:
[code]
List<BurstKlasse> Burst = new List<BurstKlasse>();
Burst.Add(new BurstKlasse(lengte,CPU_Burst));
listBox2.DataSource = Burst;
[/code]
2)
My second problem is that I can't uncheck the radiobuttons. If the user has checked it, I can not uncheck it when he presses a button.
3)
In one way or another I can't put a selected item from a combobox in a variable and then add it in the list. The code I have is:
[code]
int PNr = int.Parse(textBox1.Text);
int PAankomst = int.Parse(textBox2.Text);
String PNaam = textBox3.Text.ToString();
//ProcesKlasse.PState Pstatus = comboBox1.SelectedValue.ToString();
List<ProcesKlasse> Proces = new List<ProcesKlasse>();
Proces.Add(new ProcesKlasse(PNr, PAankomst, PNaam/*, Pstatus*/));
listBox1.DataSource = Proces;
[/code]
The ProcesKlasse is a class not in the form but in the same solution.
I would very pleased with any answers!
Thank you
Annieken
Reply
Answers (
0
)
sending data to printer
NP84 Calculating Stock Options