Hello,

i developed a smart device application with a login function. Now i want to
develop that after the user presses the login button for approximately 3
seconds a greeting screen is displayed where personal information of the
logged in user is displayed and then it is automatically forwarded to the
main screen.
Is this possible to develop for a smart device application? if yes can
anybody give me a short explanation how it works?

thanks in advance

regards

patrick

Re: greeting screen by Ravi

Ravi
Thu Sep 30 12:16:26 CDT 2004

Create a normal dialog window with all information you need. On the
InitDialog method (or WM_INITDIALOG event) you must define a timer (using
the SetTimer API or method) with 3 seconds delay (3000 ms). When the timer
event is raised, close the dialog. To do this work, you must use the method
DoModal() of the CDialog class (MFC), or use the macro DialogBox, if not
using MFC. The both methods block execution, which is released only when the
dialog is closed.
A very good solution is to use this welcome screen with a non-blocking
behavior, making any initialization that is needed while the welcome screen
is being displayed. If the program took 5 seconds to initialize, your
welcome screen will be displayed for 5 seconds, but no additional time will
be required only to show this welcome screen.

Good lucj

"pat" <pat@discussions.microsoft.com> wrote in message
news:A254221D-F7E4-4796-8E40-C6592C0E0CEF@microsoft.com...
> Hello,
>
> i developed a smart device application with a login function. Now i want
> to
> develop that after the user presses the login button for approximately 3
> seconds a greeting screen is displayed where personal information of the
> logged in user is displayed and then it is automatically forwarded to the
> main screen.
> Is this possible to develop for a smart device application? if yes can
> anybody give me a short explanation how it works?
>
> thanks in advance
>
> regards
>
> patrick



Re: greeting screen by pat

pat
Thu Sep 30 15:31:03 CDT 2004

Hello,

Thank you first of all for your reply, but what do you mean with the dialogs
i actually want to use WindowsForms in my Smart Device Application and there
are only a Form-Constructor (within this constructor the
InitializeComponent-method is called) and a Dispose method which is
overridden. -> These methods are predefined.
Can you please give me further help how i can implement this in my way??

Hopefully you find time.

thx

regards

patrick

Re: greeting screen by Ravi

Ravi
Fri Oct 01 12:13:14 CDT 2004

Patrick:
You should check what methods are available for
System.Windows.Forms.Form class. I'll give you three basic methods:
form.Show(); // Show the window in a modeless way (execution is not blocked
at this point);
form.ShowDialog(); // Show the window in a modal way. Execution will only
continue when the form is closed.

inside the form class: this.Close() ou Close() - the method Close()
terminates the dialog.

Good luck.

"pat" <pat@discussions.microsoft.com> wrote in message
news:B01296A3-1EDA-4E88-B759-452D261132E5@microsoft.com...
> Hello,
>
> Thank you first of all for your reply, but what do you mean with the
> dialogs
> i actually want to use WindowsForms in my Smart Device Application and
> there
> are only a Form-Constructor (within this constructor the
> InitializeComponent-method is called) and a Dispose method which is
> overridden. -> These methods are predefined.
> Can you please give me further help how i can implement this in my way??
>
> Hopefully you find time.
>
> thx
>
> regards
>
> patrick