K
Krzysztof Stoj
Hi!
I think there were few threads with similar questions already posted by I
thought I ask anyway.
I have a program which will display login Form and after the user enter all
valid crudentials it will display the working Form. All is written with C#
under Compactframework for Pocket PC2003.
Code looks something like this:
static void Main()
{
System.Windows.Forms.DialogResult result;
System.Windows.Forms.Form formTwo = new Form2();
System.Windows.Forms.Form formOne = new Form1();
if( (result = formTwo.ShowDialog()) == DialogResult.OK )
{
Application.Run( formOne );
}
}
The first Form ( formTwo ) display just fine, the second Form ( formOne )
runs but it is in the background covered by the desktop artifacts.
Programatic approaches to bring it to the front ( calling BringToFront,
Focus ) don't work at all. I have to Minimize the desktop applications to
see my Form.
What gives???
I think there were few threads with similar questions already posted by I
thought I ask anyway.
I have a program which will display login Form and after the user enter all
valid crudentials it will display the working Form. All is written with C#
under Compactframework for Pocket PC2003.
Code looks something like this:
static void Main()
{
System.Windows.Forms.DialogResult result;
System.Windows.Forms.Form formTwo = new Form2();
System.Windows.Forms.Form formOne = new Form1();
if( (result = formTwo.ShowDialog()) == DialogResult.OK )
{
Application.Run( formOne );
}
}
The first Form ( formTwo ) display just fine, the second Form ( formOne )
runs but it is in the background covered by the desktop artifacts.
Programatic approaches to bring it to the front ( calling BringToFront,
Focus ) don't work at all. I have to Minimize the desktop applications to
see my Form.
What gives???