Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Problem with Form Pin
carlecomm21-Sep-09 22:32
carlecomm21-Sep-09 22:32 
Questionhow to create automation obect in c#? Pin
SRKSHOME14-Sep-09 3:26
SRKSHOME14-Sep-09 3:26 
AnswerRe: how to create automation obect in c#? Pin
Keith Barrow14-Sep-09 3:30
professionalKeith Barrow14-Sep-09 3:30 
QuestionNokia ring tone Pin
hadad14-Sep-09 2:09
hadad14-Sep-09 2:09 
AnswerRe: Nokia ring tone Pin
EliottA14-Sep-09 2:43
EliottA14-Sep-09 2:43 
AnswerRe: Nokia ring tone Pin
dan!sh 14-Sep-09 4:10
professional dan!sh 14-Sep-09 4:10 
QuestionHow to read xml document being used by the another process? Pin
Shaik Haneef14-Sep-09 1:09
Shaik Haneef14-Sep-09 1:09 
AnswerRe: How to read xml document being used by the another process? Pin
Christian Graus14-Sep-09 1:13
protectorChristian Graus14-Sep-09 1:13 

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.