Click here to Skip to main content
15,909,193 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do you read the end of an XML file in C#? Pin
Ed.Poore26-Sep-06 1:30
Ed.Poore26-Sep-06 1:30 
GeneralRe: How do you read the end of an XML file in C#? Pin
bigove26-Sep-06 1:35
bigove26-Sep-06 1:35 
GeneralRe: How do you read the end of an XML file in C#? Pin
Ed.Poore26-Sep-06 1:49
Ed.Poore26-Sep-06 1:49 
GeneralRe: How do you read the end of an XML file in C#? Pin
bigove26-Sep-06 2:53
bigove26-Sep-06 2:53 
QuestionContent page script asp.net 2005 Pin
Tamimi - Code24-Sep-06 22:45
Tamimi - Code24-Sep-06 22:45 
Questionclose and reopen child forms Pin
faladrim24-Sep-06 22:33
faladrim24-Sep-06 22:33 
AnswerRe: close and reopen child forms Pin
Guffa24-Sep-06 22:39
Guffa24-Sep-06 22:39 
GeneralRe: close and reopen child forms Pin
faladrim24-Sep-06 23:28
faladrim24-Sep-06 23:28 
i found a way, cause when i just hide the form is still open and i dont want that.
here is the solution to be able to close a child form when opening another.

namespace swapform
{
public partial class Form1 : Form
{
Form3 objchild = new Form3();
Form2 objchild1 = new Form2();
public Form1()
{
InitializeComponent();
objchild.MdiParent = this;
objchild1.MdiParent = this;
}

private void form2ToolStripMenuItem_Click(object sender, EventArgs e)
{

objchild1.Close();

if ((objchild == null) | (objchild.IsDisposed))
{
objchild = new Form3();
objchild.MdiParent = this;
}
objchild.Show(); // show form3
objchild.Top = 10;//specify the location
objchild.Left = 10;
objchild.Height = 550;
objchild.Width =560;

}

private void form1ToolStripMenuItem_Click(object sender, EventArgs e)
{
objchild.Close();


if ((objchild1 == null) | (objchild1.IsDisposed))
{
objchild1 = new Form2();
objchild1.MdiParent = this;
}
objchild1.Show(); // show form 2
objchild1.Top = 10;//specify the location
objchild1.Left = 10;
objchild1.Height = 550;
objchild1.Width = 560;
}
}

grz
AnswerRe: close and reopen child forms Pin
Guffa25-Sep-06 21:15
Guffa25-Sep-06 21:15 
Questioninterchanging data Pin
V.24-Sep-06 22:10
professionalV.24-Sep-06 22:10 
AnswerRe: interchanging data Pin
Ed.Poore24-Sep-06 23:08
Ed.Poore24-Sep-06 23:08 
GeneralRe: interchanging data Pin
V.24-Sep-06 23:18
professionalV.24-Sep-06 23:18 
GeneralRe: interchanging data Pin
Ed.Poore24-Sep-06 23:24
Ed.Poore24-Sep-06 23:24 
QuestionSecond path fragment must not be a drive or UNC name. Pin
raghbhar24-Sep-06 20:59
raghbhar24-Sep-06 20:59 
AnswerRe: Second path fragment must not be a drive or UNC name. Pin
Christian Graus24-Sep-06 21:28
protectorChristian Graus24-Sep-06 21:28 
Questionhow to handle a ToolStripItem? Pin
musti_aktas24-Sep-06 20:42
musti_aktas24-Sep-06 20:42 
AnswerRe: how to handle a ToolStripItem? Pin
Luis Alonso Ramos24-Sep-06 21:27
Luis Alonso Ramos24-Sep-06 21:27 
AnswerRe: how to handle a ToolStripItem? Pin
musti_aktas24-Sep-06 21:52
musti_aktas24-Sep-06 21:52 
QuestionRegistry Pin
MHASSANF24-Sep-06 20:17
MHASSANF24-Sep-06 20:17 
AnswerRe: Registry Pin
Christian Graus24-Sep-06 20:52
protectorChristian Graus24-Sep-06 20:52 
QuestionRe: Registry Pin
MHASSANF24-Sep-06 22:36
MHASSANF24-Sep-06 22:36 
AnswerRe: Registry Pin
Christian Graus24-Sep-06 23:26
protectorChristian Graus24-Sep-06 23:26 
JokeRe: Registry Pin
Nader Elshehabi24-Sep-06 23:46
Nader Elshehabi24-Sep-06 23:46 
Questionhow to make a transparent Pin
Parshant Verma24-Sep-06 19:10
Parshant Verma24-Sep-06 19:10 
AnswerRe: how to make a transparent Pin
Christian Graus24-Sep-06 19:38
protectorChristian Graus24-Sep-06 19:38 

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.