Coinlfip

Page 1 of 1

7 Replies - 1580 Views - Last Post: 05 December 2012 - 11:25 PM Rate Topic: ***** 1 Votes

#1 Gjobsin  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 55
  • Joined: 24-February 09

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.
 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


Is This A Good Question/Topic? 0
  • +

Replies To: Coinlfip

#2 Gjobsin  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 55
  • Joined: 24-February 09

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")

Was This Post Helpful? 0
  • +
  • -

#3 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 574
  • View blog
  • Posts: 2,989
  • Joined: 19-May 09

Re: Coinlfip

Posted 04 December 2012 - 10:23 PM

Please read this.
Was This Post Helpful? 0
  • +
  • -

#4 Gjobsin  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 55
  • Joined: 24-February 09

Re: Coinlfip

Posted 04 December 2012 - 11:14 PM

View PostBobRodes, on 05 December 2012 - 05:23 AM, said:

Please read [url=http://www.dreamincode.net/forums/topic/297163-this-is-not-the-vb-vbnet-forum-this-is-old-vb6/]this[/url].


Now Im just confused. I did just that. GUy told me to come here.
Was This Post Helpful? 0
  • +
  • -

#5 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 303
  • View blog
  • Posts: 1,797
  • Joined: 26-March 09

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?
Was This Post Helpful? 0
  • +
  • -

#6 Gjobsin  Icon User is offline

  • D.I.C Head

Reputation: -3
  • View blog
  • Posts: 55
  • Joined: 24-February 09

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."
Was This Post Helpful? -3
  • +
  • -

#7 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 303
  • View blog
  • Posts: 1,797
  • Joined: 26-March 09

Re: Coinlfip

Posted 05 December 2012 - 04:24 AM

View PostGjobsin, 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."


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

Was This Post Helpful? 1
  • +
  • -

#8 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 574
  • View blog
  • Posts: 2,989
  • Joined: 19-May 09

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.

This post has been edited by BobRodes: 05 December 2012 - 11:29 PM

Was This Post Helpful? 1
  • +
  • -

Page 1 of 1