Results 1 to 3 of 3

Thread: Problem please help

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2011
    Posts
    16

    Unhappy Problem please help

    i want to make a match game were you match up the pictures. the pictures are hidden behind buttons. i' ve tried to do it my self but i cant get it to work. just wondred if anyone could help.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Problem please help

    Sure we could help. What's the question? What exactly have you done and what exactly are you having trouble with?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2011
    Posts
    16

    Re: Problem please help

    well i have 14 pictureboxes and 14 buttons. the buttons are over the pictureboxes. i'm struggling to get the buttons to become visible = true again after they have been clicked. i used a timer. just look at this its hard to explain
    Code:
     button_1 = 1
    
            count = count + 1
    
            If PictureBox1.Tag = "major2nd1" And Button12.Visible = False Then
                 Timer1.Stop()
                Timer2.Stop() 
                Timer3.Stop()
                Button1.Visible = False
    
    
            ElseIf PictureBox1.Tag = "perfect4th1" And Button10.Visible = False Then
                Timer1.Stop()
                Timer2.Stop() 
                Timer3.Stop()
                Button1.Visible = False
    
            ElseIf PictureBox1.Tag = "perfect5th1" And Button10.Visible = False Then
                Timer1.Stop()
                Timer2.Stop() 
                Timer3.Stop()
                Button1.Visible = False
    
    
               ElseIf PictureBox1.tag = "major2nd1" and count = 1 + 1 Then
                Timer1.Start()
                Timer2.Stop() 
                Timer3.Stop()
                count = 0
         
         ElseIf PictureBox1.tag = "perfect4th1" and count = 1 + 1 Then
                Timer1.Stop()
                Timer2.Start() 
                Timer3.Stop()
                count = 0
    
         ElseIf PictureBox1.tag = "perfect5th1" and count = 1 + 1 Then
                Timer1.Stop()
                Timer2.Stop() 
                Timer3.Start()
                count = 0
    
    
    
       Else
                Timer1.Stop()
                Timer2.Stop() 
                Timer3.Stop()
    
    
            End If
    
            Button1.Visible = False
    thats for the button this is for the timer
    Code:
    If button_1 =1 and count = 2 
    button1.Visible = True 
    count = 0
    button_1 = 0
    hope this helps

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