Click here to Skip to main content
16,004,927 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: MessageBox And MsgBox Pin
normanordas10-Aug-04 20:45
normanordas10-Aug-04 20:45 
GeneralMultiple Form problems Pin
Achithyn10-Aug-04 15:48
Achithyn10-Aug-04 15:48 
GeneralRe: Multiple Form problems Pin
Nick Seng10-Aug-04 16:11
Nick Seng10-Aug-04 16:11 
GeneralRe: Multiple Form problems Pin
Achithyn10-Aug-04 16:37
Achithyn10-Aug-04 16:37 
GeneralRe: Multiple Form problems Pin
Nick Seng10-Aug-04 16:42
Nick Seng10-Aug-04 16:42 
GeneralRe: Multiple Form problems Pin
Achithyn10-Aug-04 18:47
Achithyn10-Aug-04 18:47 
GeneralRe: Multiple Form problems Pin
Nick Seng10-Aug-04 20:15
Nick Seng10-Aug-04 20:15 
GeneralRe: Multiple Form problems Pin
Dave Kreskowiak11-Aug-04 1:26
mveDave Kreskowiak11-Aug-04 1:26 
The problem doesn't lend itself to being a multiple app form. Are you saying that your closing each form after a move is made and showing the next form to display the results and waiting for the next move? Walking from form to form in a game is not a good idea because each copy of the form will hold a reference to the next form, thereby keeping ALL of them open and running. When the last form is done, each form leading up to that one must close in the reverse order that they were launched in order to properly release its resources. All your oding with this method is taking up more and more memory the farther into the game to get.

You can't close your first form, you can hide it though, because the is the form that has your main message pump behind it. Once that pump is ended, your entire app closes, not just that form.

A better multiple app version of the game would be to display the board in one window and the game status and, possibly, the computers thinking in another form. This way you only have 2 forms to manage and it better represents a real world application.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Multiple Form problems Pin
Achithyn11-Aug-04 7:23
Achithyn11-Aug-04 7:23 
GeneralRe: Multiple Form problems Pin
Dave Kreskowiak11-Aug-04 8:57
mveDave Kreskowiak11-Aug-04 8:57 
GeneralRe: Multiple Form problems Pin
Achithyn11-Aug-04 9:45
Achithyn11-Aug-04 9:45 
GeneralDataGridView Pin
mtone10-Aug-04 15:34
mtone10-Aug-04 15:34 
QuestionIs it possible to do this? Pin
Lisana10-Aug-04 14:55
Lisana10-Aug-04 14:55 
AnswerRe: Is it possible to do this? Pin
Nick Seng10-Aug-04 15:24
Nick Seng10-Aug-04 15:24 
GeneralRe: Is it possible to do this? Pin
Lisana10-Aug-04 15:52
Lisana10-Aug-04 15:52 
GeneralRe: Is it possible to do this? Pin
Nick Seng10-Aug-04 16:09
Nick Seng10-Aug-04 16:09 
GeneralRe: Is it possible to do this? Pin
Lisana11-Aug-04 3:24
Lisana11-Aug-04 3:24 
GeneralTCP / Telnet client Pin
sybux200010-Aug-04 10:28
sybux200010-Aug-04 10:28 
GeneralRe: TCP / Telnet client Pin
Dave Kreskowiak11-Aug-04 4:46
mveDave Kreskowiak11-Aug-04 4:46 
GeneralRe: TCP / Telnet client Pin
sybux200011-Aug-04 8:59
sybux200011-Aug-04 8:59 
Generalrow state is always set to modified Pin
kowplunk10-Aug-04 10:24
kowplunk10-Aug-04 10:24 
GeneralRe: row state is always set to modified Pin
Member 53081011-Aug-04 3:10
Member 53081011-Aug-04 3:10 
GeneralRe: row state is always set to modified Pin
kowplunk11-Aug-04 6:22
kowplunk11-Aug-04 6:22 
GeneralRe: row state is always set to modified Pin
kowplunk11-Aug-04 7:38
kowplunk11-Aug-04 7:38 
Generalusing the mouse to resize controls on a form during runtime Pin
Reddragoneye88810-Aug-04 5:57
Reddragoneye88810-Aug-04 5:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.