Results 1 to 8 of 8

Thread: Need help with simple list box project code

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    10

    Need help with simple list box project code

    I dont know how to go about this project. I honestly dont know much code and do not know the code to use for this project to work out. If anyone can help me, here is the project. Thanks so much.
    Name:  List Box project.png
Views: 369
Size:  422.8 KB

  2. #2

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    10

    Re: Need help with simple list box project code

    Bump. This is really difficult for me and i need some help.

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    10

    Re: Need help with simple list box project code

    Bump

  4. #4
    Addicted Member MetalInquisitor's Avatar
    Join Date
    Sep 2012
    Posts
    143

    Re: Need help with simple list box project code

    What have you got so far?

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    10

    Re: Need help with simple list box project code

    i have.....the list boxes and stuff on the form...but no code. i kinda didnt pay attention in class and now im paying for it....tomorrow is the last day of class and this was due a while ago but i need this in to pass.

  6. #6

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    10

    Re: Need help with simple list box project code

    Public Class Form1
    Private Sub btnCSC_Click(sender As System.Object, e As System.EventArgs) Handles btnCSC.Click
    Dim counter As Integer

    For i As Integer 0 to lstMajors.Items.Count -1
    If (lstMajors.Items(i) Is "CS") Then
    counter = counter + 1
    lstResults.Items.Add(lstStudents(i))
    End If
    Next
    txtMajor.Text = "Computer Science"
    txtMajors.Text = “Number of Majors” & CSTR (counter)
    End Sub

    End Class



    This is what i have so far

  7. #7
    Frenzied Member IanRyder's Avatar
    Join Date
    Jan 2013
    Location
    Healing, UK
    Posts
    1,232

    Re: Need help with simple list box project code

    Hi,

    Well that was a bit of a shock! I was just reading a thread about a Pizza project and was just thinking to myself that no one is going to help here until you have shown you had helped yourself.

    I then went back to the Forum and noticed that this thread had been added to while I was reading it, so I had another look. The new post then had some code which made reference to a txtMajor TextBox's etc, which confused me. After reading again from Post No.1 you have changed the whole thread to a Departmental Majors project??

    So what happened to the Pizza project, I take it one of your school mates gave you that one? Well, based on this comment that you made:-

    i kinda didnt pay attention in class and now im paying for it....tomorrow is the last day of class and this was due a while ago but i need this in to pass.
    I guess you are going to fail since the best I can offer here is:-

    http://www.homeandlearn.co.uk/net/vbnet.html

    Cheers,

    Ian

    [Edit] Ah, just realised that this is a SECOND project, but my comment still stands.
    Last edited by IanRyder; May 14th, 2013 at 11:10 PM.

  8. #8

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    10

    Re: Need help with simple list box project code

    i figured it out! all by myself! Well at least how to get the first button working for Computer Science Majors. Now do i just copy the code and replace the name for buttons?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width