Click here to Skip to main content
15,897,187 members
Home / Discussions / C#
   

C#

 
GeneralRe: form Pin
0x3c014-Sep-09 7:55
0x3c014-Sep-09 7:55 
GeneralRe: form Pin
Not Active14-Sep-09 8:11
mentorNot Active14-Sep-09 8:11 
AnswerRe: form Pin
Dave Kreskowiak14-Sep-09 14:32
mveDave Kreskowiak14-Sep-09 14:32 
Questionimage to crystal report Pin
tanweer14-Sep-09 6:24
tanweer14-Sep-09 6:24 
Questionsyncronization service Pin
amer shammout14-Sep-09 5:47
amer shammout14-Sep-09 5:47 
AnswerRe: syncronization service Pin
Keith Barrow14-Sep-09 6:23
professionalKeith Barrow14-Sep-09 6:23 
QuestionProblem with Form Pin
Lim Yuxuan14-Sep-09 3:38
Lim Yuxuan14-Sep-09 3:38 
AnswerRe: Problem with Form Pin
EliottA14-Sep-09 3:42
EliottA14-Sep-09 3:42 
GeneralRe: Problem with Form Pin
Lim Yuxuan14-Sep-09 3:48
Lim Yuxuan14-Sep-09 3:48 
AnswerRe: Problem with Form Pin
Henry Minute14-Sep-09 3:44
Henry Minute14-Sep-09 3:44 
GeneralRe: Problem with Form Pin
Lim Yuxuan14-Sep-09 3:47
Lim Yuxuan14-Sep-09 3:47 
GeneralRe: Problem with Form Pin
Henry Minute14-Sep-09 4:38
Henry Minute14-Sep-09 4:38 
AnswerRe: Problem with Form [modified] Pin
dan!sh 14-Sep-09 3:57
professional dan!sh 14-Sep-09 3:57 
GeneralRe: Problem with Form Pin
Lim Yuxuan14-Sep-09 4:14
Lim Yuxuan14-Sep-09 4:14 
GeneralRe: Problem with Form Pin
dan!sh 14-Sep-09 4:17
professional dan!sh 14-Sep-09 4:17 
AnswerRe: Problem with Form Pin
musefan14-Sep-09 3:58
musefan14-Sep-09 3:58 
where are you calling your initial frmMenu form from? I think your problem is you are creating frm2Players from within frmMenu which means when that closes it will close all children.

What you want to do is call frmMenu from wherever it is you call that now, and have that return a value (suggested through a property), when btn2Player is clicked then the property is set and the frmMenu is closed - the parent form/class can then use that property to determine what form to open next.

something like...

if(frmMenu.ShowDialog == DialogResult.OK)
{
  switch(frmMenu.OptionProperty)
  {
    case 1://1 player
      frm1Player frm1P = new frm1Player();
      frm1P.Show();
    break;
    case 2://2 player
      frm2Players frm2P = new frm2Players();
      frm2P.Show();
    break;
  }

}


Life goes very fast. Tomorrow, today is already yesterday.

GeneralRe: Problem with Form Pin
Lim Yuxuan14-Sep-09 4:13
Lim Yuxuan14-Sep-09 4:13 
GeneralRe: Problem with Form Pin
musefan14-Sep-09 4:25
musefan14-Sep-09 4:25 
GeneralRe: Problem with Form Pin
dan!sh 14-Sep-09 4:31
professional dan!sh 14-Sep-09 4:31 
GeneralRe: Problem with Form Pin
musefan14-Sep-09 4:41
musefan14-Sep-09 4:41 
GeneralRe: Problem with Form Pin
Lim Yuxuan14-Sep-09 13:32
Lim Yuxuan14-Sep-09 13:32 
GeneralRe: Problem with Form [modified] Pin
Lim Yuxuan14-Sep-09 13:20
Lim Yuxuan14-Sep-09 13:20 
GeneralRe: Problem with Form Pin
dan!sh 14-Sep-09 19:49
professional dan!sh 14-Sep-09 19:49 
GeneralRe: Problem with Form Pin
Lim Yuxuan15-Sep-09 0:47
Lim Yuxuan15-Sep-09 0:47 
AnswerRe: Problem with Form [modified] Pin
carlecomm21-Sep-09 16:42
carlecomm21-Sep-09 16:42 

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.