|
-
Feb 18th, 2005, 09:46 AM
#1
Thread Starter
Junior Member
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:
i dont know whats wrong with it. can someone please help.
Thanks
Last edited by Kaneoku; Feb 18th, 2005 at 10:13 AM.
-
Feb 18th, 2005, 09:52 AM
#2
Hyperactive Member
Re: VB:Bingo Game help please
VB Code:
[B][U]Set[/U][/B] BingoCard.MdiParent = Me
-
Feb 18th, 2005, 09:55 AM
#3
Thread Starter
Junior Member
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:
Private Sub mnuPlayer1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuPlayer1.Click
Dim BingoCard As New BingoCard
BingoCard.MdiParent = Me
Static intCardNum As Integer
intCardNum = intCardNum + 1
BingoCard.Text = "Player 1 Card " & intCardNum
Call GenerateBingoCard(BingoCard)
BingoCard.Show()
End Sub
Last edited by Kaneoku; Feb 18th, 2005 at 09:59 AM.
-
Feb 18th, 2005, 10:13 AM
#4
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|