Click here to Skip to main content
15,913,934 members
Home / Discussions / C#
   

C#

 
AnswerRe: monthcalendar Pin
JacquesDP6-Mar-06 18:56
JacquesDP6-Mar-06 18:56 
GeneralRe: monthcalendar Pin
nassimnastaran6-Mar-06 22:29
nassimnastaran6-Mar-06 22:29 
GeneralRe: monthcalendar Pin
Drew McGhie7-Mar-06 9:31
Drew McGhie7-Mar-06 9:31 
QuestionArrayList Problem Pin
AB77716-Mar-06 18:40
AB77716-Mar-06 18:40 
AnswerRe: ArrayList Problem Pin
DigitalKing6-Mar-06 19:03
DigitalKing6-Mar-06 19:03 
GeneralRe: ArrayList Problem Pin
AB77716-Mar-06 19:11
AB77716-Mar-06 19:11 
GeneralRe: ArrayList Problem Pin
DigitalKing6-Mar-06 19:18
DigitalKing6-Mar-06 19:18 
GeneralRe: ArrayList Problem Pin
AB77716-Mar-06 19:28
AB77716-Mar-06 19:28 
QuestionHow to acess a floopy drive in c#? Pin
nitin_ap6-Mar-06 18:38
nitin_ap6-Mar-06 18:38 
AnswerRe: How to acess a floopy drive in c#? Pin
hackerhcm6-Mar-06 18:57
hackerhcm6-Mar-06 18:57 
QuestionRename computer hostname Pin
picasso26-Mar-06 17:28
picasso26-Mar-06 17:28 
AnswerRe: Rename computer hostname Pin
Vasudevan Deepak Kumar6-Mar-06 18:13
Vasudevan Deepak Kumar6-Mar-06 18:13 
GeneralRe: Rename computer hostname Pin
picasso26-Mar-06 18:57
picasso26-Mar-06 18:57 
QuestionMdi Active child Pin
JacquesDP6-Mar-06 17:27
JacquesDP6-Mar-06 17:27 
AnswerRe: Mdi Active child Pin
DigitalKing6-Mar-06 17:50
DigitalKing6-Mar-06 17:50 
Do something like this:

private void newWindowType1ToolStripMenuItem_Click(object sender, EventArgs e)
{
   if (!ContainsChildForm(typeof(child1)))
   {
       child1 c = new child1();
       c.MdiParent = this;
       c.Show();
   }
}

private void newWindowType2ToolStripMenuItem_Click(object sender, EventArgs e)
{
   if (!ContainsChildForm(typeof(child2)))
   {
       child2 c = new child2();
       c.MdiParent = this;
       c.Show();
   }
}

private bool ContainsChildForm(Type t)
{
   for (int i = 0; i < this.MdiChildren.Length; i++)
   {
       if (t.IsInstanceOfType(this.MdiChildren[i]))
       {
           return true;
       }
   }
   return false;
}

GeneralRe: Mdi Active child Pin
JacquesDP6-Mar-06 18:03
JacquesDP6-Mar-06 18:03 
AnswerRe: Mdi Active child Pin
DigitalKing6-Mar-06 18:13
DigitalKing6-Mar-06 18:13 
GeneralRe: Mdi Active child Pin
JacquesDP6-Mar-06 18:49
JacquesDP6-Mar-06 18:49 
AnswerRe: Mdi Active child Pin
DigitalKing6-Mar-06 18:59
DigitalKing6-Mar-06 18:59 
GeneralRe: Mdi Active child Pin
PavanPabolu6-Nov-10 11:21
PavanPabolu6-Nov-10 11:21 
GeneralRe: Mdi Active child Pin
JacquesDP6-Mar-06 18:23
JacquesDP6-Mar-06 18:23 
Questionbind the datagrid Pin
angelagke6-Mar-06 16:09
angelagke6-Mar-06 16:09 
AnswerRe: bind the datagrid Pin
goyal manish6-Mar-06 18:00
goyal manish6-Mar-06 18:00 
GeneralRe: bind the datagrid Pin
angelagke6-Mar-06 18:13
angelagke6-Mar-06 18:13 
GeneralRe: bind the datagrid Pin
goyal manish6-Mar-06 23:56
goyal manish6-Mar-06 23:56 

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.