User Profile

Collapse

Profile Sidebar

Collapse
Scalp994
Scalp994
Last Activity: Apr 18 '12, 03:51 PM
Joined: Feb 18 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Scalp994
    started a topic Assigning value to an array inside a list?

    Assigning value to an array inside a list?

    Hello!

    In my code, I've got a class called "teacher" which has some arrays inside of it:
    Code:
    public class teacher
            {
                //monday
                public bool[] mon = new bool[11];
    
                //tuesday
                public bool[] tue = new bool[11];
    
                //wednesday
                public bool[] wed = new bool[11];
    
                //thursday
    ...
    See more | Go to post

  • Scalp994
    started a topic Problem using .TrueForAll

    Problem using .TrueForAll

    Sorry, I couldn't even find a proper title for the question.

    I've got a code that goes like this:

    Code:
    for(i=0 ; i <= numberofstudents ; i++)
    {
    //looking for the students that have chosen maths on HL among all the students
    if (students[i].maths == "Higher level")
    {
    //checking if those students have free time on given lessons
    if (students[i].mondaylesson1 == false &&
    ...
    See more | Go to post

  • Thanks a lot, it works like a charm now :)
    See more | Go to post

    Leave a comment:


  • Scalp994
    started a topic Objects inside a class getting overwrited?

    Objects inside a class getting overwrited?

    Hello,
    I've encountered a problem.

    I've a class that looks like this:
    Code:
    public class student
            {
                public int number;
                public string surname;
                public string[] subjects = new string[10];
            };
    The objects of the class are then added to a list
    Code:
    List<student> students = new List<student>();
    Code:
    students.Add(new
    ...
    See more | Go to post

  • Scalp994
    started a topic Running a .NET Framework 4.0 app on Windows XP

    Running a .NET Framework 4.0 app on Windows XP

    I've been developing a timetable generator programme for a few days now, and when I wanted to show it in my school on some Windows XP computer, the following errors showed up:



    that was of course a x86 release, and the computer had the .NET Framework 4.0 installed. None of these errors occur when running the x64 version on my Windows 7, or even when running the x86 version under Windows XP SP2 x86 compatibility mode....
    See more | Go to post

  • Deleting a list entry based on listview selection

    Hey there!

    I have a class called "student" which consists of a string "surname" and a string array "subjects". I also have a list of type "student" of all the students.

    Code:
    public class student
            {
                public static string surname;
                public string[] subjects = new string[10];
            };
    
            List<student>
    ...
    See more | Go to post

  • Thanks for the response, I've accomplished the same effect in another way, though.

    Code:
    if (listView3.SelectedItems.Count != 0)
                {
                    foreach (ListViewItem lvi3 in listView3.SelectedItems)
                    {  
                        string selection = lvi3.Text;
                        
                        comboBox1.Items.Remove(selection);
                        lvi3.Remove();
    ...
    See more | Go to post

    Leave a comment:


  • Deleting a given item in listview and in combobox

    Hey there,
    I have a listview with 2 columns that puts the text taken from a textbox in the first column and the value of a radiobutton in the second one. Upon pressing the "add" button the text and the value appear in the listview, and the text is also added to a combobox.

    Code:
    ListViewItem lvi3 = new ListViewItem(textBox3.Text);
    //now adding the radiobutton value
    lvi3.SubItems.Add(textfromradiobutton);
    ...
    See more | Go to post
No activity results to display
Show More
Working...