PC Review


Reply
Thread Tools Rate Thread

Displaying multiple forms.

 
 
Krzysztof Stoj
Guest
Posts: n/a
 
      4th Sep 2003
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???


 
Reply With Quote
 
 
 
 
Krzysztof Stoj
Guest
Posts: n/a
 
      4th Sep 2003
Never mind found the solution in previous threads.

Thanks.


"Krzysztof Stoj" <(E-Mail Removed)> wrote in message
news:%23f%(E-Mail Removed)...
> 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???
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forms - Displaying Multiple Records in one form Lyne Savage Microsoft Access Forms 3 9th Sep 2009 12:50 PM
displaying forms wally Microsoft Access 0 7th Feb 2008 03:41 PM
Displaying multiple forms Nancy Kafer Microsoft Dot NET Compact Framework 4 21st Apr 2005 11:40 PM
Combo boxes on forms displaying multiple fields ... Jamie Risk Microsoft Access 2 17th Feb 2005 01:10 AM
Displaying forms on multiple monitors Ian Rutherford Microsoft VB .NET 0 8th Feb 2004 02:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:48 PM.