By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,458 Members | 1,313 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,458 IT Pros & Developers. It's quick & easy.

A simple question about show

P: n/a
Hello!

When I have only one window how can the window form be displayed
when I don't have a show method. As in the example below with the Form class
FrmContainer

If I have an MDI child I must explicitly use the Show method for the MDI
child.

Can somebody explain that!

static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(fals e);
Application.Run(new FrmContainer());
}

public FrmContainer()
{
InitializeComponent();
}
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hello!

How do I write to test this with show that you suggested ?

//Tony
"Ignacio Machin ( .NET/ C# MVP )" <ig************@gmail.comskrev i
meddelandet
news:3a**********************************@p25g2000 hsf.googlegroups.com...
On Jun 27, 9:40 am, "Tony" <johansson.anders...@telia.comwrote:
Hello!

When I have only one window how can the window form be displayed
when I don't have a show method. As in the example below with the Form
class
FrmContainer

If I have an MDI child I must explicitly use the Show method for the MDI
child.

Can somebody explain that!

static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(fals e);
Application.Run(new FrmContainer());
}

public FrmContainer()
{
InitializeComponent();
}
HI,

Application.Run calls Show

do this, redefine the Show method in your form and put a breakpoint
there, take a look in the call stack and you will see the call
Jun 28 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.