To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
Part 10 of the Visual Basic .NET 2010 Express Tutorial Complete!
How to Use the Visual Studio Code Analysis Tool FxCop
Article :: Interview with Andrei Alexandrescu (Part 3 of 3)
Introducing Visual Studio LightSwitch
Visual Studio LightSwitch Beta 1 is Available



Go Back   VBForums > Visual Basic > Games and Graphics Programming

Reply Post New Thread
 
Thread Tools Display Modes
Old Feb 18th, 2005, 08:46 AM   #1
Kaneoku
Junior Member
 
Join Date: Feb 05
Posts: 20
Kaneoku is an unknown quantity at this point (<10)
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 09:13 AM.
Kaneoku is offline   Reply With Quote
Old Feb 18th, 2005, 08:52 AM   #2
bpd
Hyperactive Member
 
Join Date: Jun 04
Posts: 463
bpd will become famous soon enough (65+)
Re: VB:Bingo Game help please

VB Code:
  1. [b][u]Set[/u][/b] BingoCard.MdiParent = Me
bpd is offline   Reply With Quote
Old Feb 18th, 2005, 08:55 AM   #3
Kaneoku
Junior Member
 
Join Date: Feb 05
Posts: 20
Kaneoku is an unknown quantity at this point (<10)
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.         BingoCard.Show()
  9.     End Sub

Last edited by Kaneoku; Feb 18th, 2005 at 08:59 AM.
Kaneoku is offline   Reply With Quote
Old Feb 18th, 2005, 09:13 AM   #4
Kaneoku
Junior Member
 
Join Date: Feb 05
Posts: 20
Kaneoku is an unknown quantity at this point (<10)
Resolved Re: VB:Bingo Game help please

oooo i got it to work, the mdicontainer was set to false. Thanks for the help
Kaneoku is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > Games and Graphics Programming


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:18 AM.





Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.