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
MSDN Subscribers: Download the VS 2010 Release Candidate
MSDN Subscribers: Download the VS 2010 Release Candidate
Sell Your Code and Make Money?
Creating your own Tetris game using VB.NET
Article :: Improving Software Economics, Part 4 of 7: Top 10 Principles of Iterative Software Management



Go Back   VBForums > Visual Basic > Games and Graphics Programming

Reply Post New Thread
 
Thread Tools Search this Thread Display Modes
Old Feb 18th, 2005, 09: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 10:13 AM.
Kaneoku is offline   Reply With Quote
Old Feb 18th, 2005, 09:52 AM   #2
bpd
Hyperactive Member
 
Join Date: Jun 04
Posts: 459
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, 09: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 09:59 AM.
Kaneoku is offline   Reply With Quote
Old Feb 18th, 2005, 10: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 Search this Thread
Search this Thread:

Advanced Search
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 11:40 AM.




To view more projects, click here

Acceptable Use Policy


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.