Hello, im making a Bingo game but when it runs, it comes up with this part of the code highlighted:
VB Code:
BingoCard.MdiParent = Me
i dont know whats wrong with it. can someone please help.
Thanks
Printable View
Hello, im making a Bingo game but when it runs, it comes up with this part of the code highlighted:
VB Code:
BingoCard.MdiParent = Me
i dont know whats wrong with it. can someone please help.
Thanks
VB Code:
[B][U]Set[/U][/B] BingoCard.MdiParent = Me
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
oooo i got it to work, the mdicontainer was set to false. Thanks for the help :bigyello: