Private Sub Flip_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Flip_Button.Click
Dim result As Integer
6: Dim random As New Random
7: result = random.Next(1)
8:
9:
11:
If RadioButton1.Checked = False And RadioButton2.Checked = False Then
19: MessageBox.Show("Player 1 must make a selection")
20:
Heads.Visible = False
Tails.Visible = False
13:
14: ElseIf result = 0 And RadioButton2.Checked Then
15: Tails.Visible = True
16: MessageBox.Show("Player 2 Goes First")
17:
18: ElseIf result = 0 And RadioButton1.Checked Then
10: Heads.Visible = True
12: MessageBox.Show("Player 1 Goes First")
21: End If
22:
End Sub
Coinlfip
Page 1 of 17 Replies - 655 Views - Last Post: 05 December 2012 - 11:25 PM
#1
Coinlfip
Posted 04 December 2012 - 07:21 PM
It appears that the result is depends on the radio button clicked (when heads radio button is selected I get gets and vice versa) is it me or can anyone point out anything they see. Any help appreciated.
Replies To: Coinlfip
#2
Re: Coinlfip
Posted 04 December 2012 - 07:27 PM
I added two more and it tells me the lines that have to do with player two going "label "x" is already defined in the method/multi line lambda
ElseIf result = 0 And RadioButton1.Checked Then
15: Heads.Visible = True
16: MessageBox.Show("Player 1 Goes First")
ElseIf result = 0 And RadioButton1.Checked Then
10: Heads.Visible = True
12: MessageBox.Show("Player 1 Goes First")
Else If result = And RadioButton2.Checked Then
15: Tails.Visible = True
16: MessageBox.Show("Player 2 Goes First")
13:
14: ElseIf result = 0 And RadioButton2.Checked Then
15: Tails.Visible = True
16: MessageBox.Show("Player 2 Goes First")
#4
Re: Coinlfip
Posted 04 December 2012 - 11:14 PM
#5
Re: Coinlfip
Posted 05 December 2012 - 02:10 AM
I've already responded on this topic and it got moved to the VB.Net forum and correctly so.
Why have you opened a new topic and not even looked at my reply to the original one?
Why have you opened a new topic and not even looked at my reply to the original one?
#6
Re: Coinlfip
Posted 05 December 2012 - 02:29 AM
because apparently I didn't know. Why you being a dick?
lol wait, you're the guy who told me to come here. and now you have the nerve to pop up and identify yourself as the ass who redirected me to the wrong forum. that takes balls.
btw, i did read it. and up vote it cause you tried to help me. but the whole thing was full of " I don't really know but this is what I do with a different language."
lol wait, you're the guy who told me to come here. and now you have the nerve to pop up and identify yourself as the ass who redirected me to the wrong forum. that takes balls.
btw, i did read it. and up vote it cause you tried to help me. but the whole thing was full of " I don't really know but this is what I do with a different language."
#7
Re: Coinlfip
Posted 05 December 2012 - 04:24 AM
Gjobsin, on 05 December 2012 - 09:29 AM, said:
because apparently I didn't know. Why you being a dick?
lol wait, you're the guy who told me to come here. and now you have the nerve to pop up and identify yourself as the ass who redirected me to the wrong forum. that takes balls.
btw, i did read it. and up vote it cause you tried to help me. but the whole thing was full of " I don't really know but this is what I do with a different language."
lol wait, you're the guy who told me to come here. and now you have the nerve to pop up and identify yourself as the ass who redirected me to the wrong forum. that takes balls.
btw, i did read it. and up vote it cause you tried to help me. but the whole thing was full of " I don't really know but this is what I do with a different language."
I'm being a dick and I'm an ass?? Hmmmm OK....
No, I didn't ask you to move it here...it was already here! I told you it was VB.Net, which is what it is....hence it go moved by a mod to the correct forum.
And yes, I didn't know the exact VB.Net syntax as it's not a language I use, but it was a pointer in the right direction, based on my experience in VB6.
In future, I'll remember not to bother trying to assist you....but do yourself a favour, if your looking for help here, please lose the attitude and at least know which language you're programming in, before having a go at people who have tried to help!
This post has been edited by maj3091: 05 December 2012 - 04:28 AM
#8
Re: Coinlfip
Posted 05 December 2012 - 11:25 PM
And I am the mod who moved you over. Apparently, when you got moved to the correct forum, you didn't realize that you were moved there and reposted in the VB6 forum. I thought my thread explained the difference pretty clearly.
However, since you appear to be having trouble understanding my post, let me see if I can make it crystal clear for you. Your code is VB.Net code, not VB6 code. That's why I moved you there, and that's why maj told you you were in the wrong forum. For the record, I checked his post and he correctly explained that you needed to be in the VB.Net forum. In case you haven't noticed (try looking at the top of the page), this is the VB6 forum.
If you read my post carefully, you might be able to work out the difference for yourself. That is, if you ever decide to stop putting all your efforts into showing your ass. Now, suppose you go to your other thread and see if you can work out your problem. This one is closed.
However, since you appear to be having trouble understanding my post, let me see if I can make it crystal clear for you. Your code is VB.Net code, not VB6 code. That's why I moved you there, and that's why maj told you you were in the wrong forum. For the record, I checked his post and he correctly explained that you needed to be in the VB.Net forum. In case you haven't noticed (try looking at the top of the page), this is the VB6 forum.
If you read my post carefully, you might be able to work out the difference for yourself. That is, if you ever decide to stop putting all your efforts into showing your ass. Now, suppose you go to your other thread and see if you can work out your problem. This one is closed.
This post has been edited by BobRodes: 05 December 2012 - 11:29 PM
Page 1 of 1
|
|

New Topic/Question
This topic is locked



MultiQuote




|