|
-
May 14th, 2013, 09:53 PM
#1
Thread Starter
New Member
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.
-
May 14th, 2013, 09:56 PM
#2
Thread Starter
New Member
Re: Need help with simple list box project code
Bump. This is really difficult for me and i need some help.
-
May 14th, 2013, 10:01 PM
#3
Thread Starter
New Member
Re: Need help with simple list box project code
-
May 14th, 2013, 10:07 PM
#4
Addicted Member
Re: Need help with simple list box project code
What have you got so far?
-
May 14th, 2013, 10:18 PM
#5
Thread Starter
New Member
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.
-
May 14th, 2013, 10:43 PM
#6
Thread Starter
New Member
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
-
May 14th, 2013, 11:06 PM
#7
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.
-
May 14th, 2013, 11:58 PM
#8
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|