2
Answers

Mdi Parent and Child

Dana Maria

Dana Maria

12y
1.1k
1
Hello!
I have a Parent Form. From it i load another form, a normal form and from it a child form for the Parent form. My code sounds like this:

//this is the code from the intermediate form (normal form)
admpanel_form admform=new admpanel_form(); //this is the Parent form
vizualizare_form form1 = new vizualizare_form(); //this is the child form that i want to load in                                                                         admpanel_form
form1.MdiParent =admform; //setting the Parent admform for form1
form1.Show();

So it seems it is not working.
Please help me!
Answers (2)
0
Vulpes

Vulpes

NA 98.3k 1.5m 12y
Here's another way of doing it:

      int i = 1;
      int j = 2;
      i ^= j;
      j ^= i;
      i ^= j;
      Console.WriteLine("i = {0}, j = {1}", i, j);
0
Suthish Nair

Suthish Nair

NA 31.7k 4.6m 12y

  Something like this, try it..

            int i = 1;
            int j = 2;

            Console.WriteLine("i = " + i);
            Console.WriteLine("j = " + j);

            i = (j + i);
            j = (i - j);
            i = (i - j);

            Console.WriteLine("");
            Console.WriteLine("i = " + i);
            Console.WriteLine("j = " + j);
            Console.ReadKey();