Well, first of all Id like to say Im a newbie with VB, so this may seem like a stupid question to some of you, or maybe not. I really dont know. Anyway here I go:
I have this ComboBox that has different items on it (these items are movie titles). What I need is, that everytime I select a different movie, it has to appear the number on a Textbox.
I.e :
If I select V for Vendetta as my first movie the textbox has to show the number 1. Then If I change V for vendetta for another movie lets say Wedding Crashers the textbox has to show the number 2.
It has to happen everytime I select a different movie. . the textbox represents the number of different movies Im selecting..
I really dont know how to do this..at all!.. I need your help . please try to keep it simple cause as I already said before, Im a newbie at this
Well thanks to you, aikokid, I finally made it! ITs all good now...the thing is..I find myself with a new problem.. =(
Now I need..that ( on a different form) a textbox says the movies I selected.. If I selected wedding crashers and v for vendetta de textbox must show both of them..the textbox now represents the movies I already rented..can you help me with this please?. To me, it seems rather complicated.
PS: I know that If I name the form and then the control it will show the same as in the prebious form.
I accidentally posted it..sorry .. the last part was
I.e Textbox1.text= Form1.ComboBox1.SelectedItem
The only problem is that it only works for the movie that is actually selected (that would be the last one I chose) so It will only show one..not all the ones I chose...how do i do this?
I havent tried that yet but IT sounds like it will work indeed.. The thing is . what IF the user selects more than 2 movies..?
If I use this
Textbox1.Text = Textbox1.Text & " " & Form1.ComboBox1.SelectedItem
Its only 2 movies right?.. Oh and . what is the value of the textbox1.text in this case?
Im using Select Case on the previous form so .. the form2.textbox1.text would be = to the Combobox.SelectedItem on the form 1 right? . thats what you mean?
Dim lngIndex As Long
For lngIndex = 0 To List1.ListCount - 1
If List1.Selected(lngIndex) Then
Textbox1.Text = Textbox1.Text & List1.List(lngIndex) & vbCrLf
End If
Next
All 4 of them . . .If the user selects movie A. then the textbox must show the movie A .. and then selects a movie B then the textbox must show the movie A and B .. the same as C and D
Aikokid, Im asking you.
If I use this Textbox1.Text = Textbox1.Text & " " & Form1.ComboBox1.SelectedItem
Then Textbox1.text = ? .. If I use Select Case X on my previous form and everytime I select a different movie I put Form2.Textbox1.Text = X and use the code you gave me . itll show the same movie cause everytime I select a different movie the Textbox1.text on form2 will be the same as the one I already selected...crap -_-..this is getting complicated hehe