Results 1 to 4 of 4

Thread: VB:Bingo Game help please-[RESOLVED]

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2005
    Posts
    20

    Resolved VB:Bingo Game help please-[RESOLVED]

    Hello, im making a Bingo game but when it runs, it comes up with this part of the code highlighted:
    VB Code:
    1. BingoCard.MdiParent = Me

    i dont know whats wrong with it. can someone please help.

    Thanks
    Last edited by Kaneoku; Feb 18th, 2005 at 10:13 AM.

  2. #2
    Hyperactive Member
    Join Date
    Jun 2004
    Posts
    468

    Re: VB:Bingo Game help please

    VB Code:
    1. [B][U]Set[/U][/B] BingoCard.MdiParent = Me

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2005
    Posts
    20

    Re: VB:Bingo Game help please

    still wont work, i click on player 1 and it brings up this:

    An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll

    Additional information: The form that was specified to be the MdiParent for this form is not an MdiContainer.

    Heres somemore code:
    VB Code:
    1. Private Sub mnuPlayer1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuPlayer1.Click
    2. Dim BingoCard As New BingoCard
    3.         BingoCard.MdiParent = Me
    4.         Static intCardNum As Integer
    5.         intCardNum = intCardNum + 1
    6.         BingoCard.Text = "Player 1 Card " & intCardNum
    7.         Call GenerateBingoCard(BingoCard)
    8.  
    9.         BingoCard.Show()
    10.     End Sub
    Last edited by Kaneoku; Feb 18th, 2005 at 09:59 AM.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Feb 2005
    Posts
    20

    Resolved Re: VB:Bingo Game help please

    oooo i got it to work, the mdicontainer was set to false. Thanks for the help

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