Click here to Skip to main content
15,908,013 members
Home / Discussions / C#
   

C#

 
QuestionC# on Linux...?!? Pin
QzRz27-Oct-04 7:24
QzRz27-Oct-04 7:24 
AnswerRe: C# on Linux...?!? Pin
Alex Korchemniy27-Oct-04 7:39
Alex Korchemniy27-Oct-04 7:39 
GeneralRe: C# on Linux...?!? Pin
QzRz27-Oct-04 7:43
QzRz27-Oct-04 7:43 
Generalupdating using a dataset. Pin
steve_rm27-Oct-04 7:13
steve_rm27-Oct-04 7:13 
GeneralRe: updating using a dataset. Pin
Hugo Migneron27-Oct-04 7:49
Hugo Migneron27-Oct-04 7:49 
GeneralRe: updating using a dataset. Pin
steve_rm27-Oct-04 14:12
steve_rm27-Oct-04 14:12 
GeneralRe: updating using a dataset. Pin
Hugo Migneron28-Oct-04 3:16
Hugo Migneron28-Oct-04 3:16 
GeneralSplash Screen Pin
mathon27-Oct-04 6:53
mathon27-Oct-04 6:53 
Hello,

I want to add a Splash Screen to my Smart Device Application. The situation is as follows:

The Form1.cs is my Login Page, the Splash.cs is my Form which should displayed about 3 seconds and then should automatically go on to the MainMenu Form.
To reach that I made the following:

In the Form1.cs exists a button which forwards to the MainMenu with these two lines:

MainMenu mainMenu = new MainMenu();
mainMenu.Show();

In the Constructor of the MainMenu Form I wrote after the InitializeComponent() the following lines:

Splash splash = new Splash();
splash.Show();

And in the Splash.cs I import the following method:

[DllImport("coredll.dll", CharSet=CharSet.Unicode)]
public static extern void Sleep (int dwMilliseconds);

public const int IDC_WAIT = 32514;
public const int IDC_ARROW = 32512;
public const int IDC_IBEAM = 32513;
public const int IDC_CROSS = 32515;
public const int IDC_UPARROW = 32516;
public const int IDC_NO = 32648;
public const int IDC_HELP = 32651;
private System.Windows.Forms.Label label1;
public const int IDC_HAND = 32649;

and in the Splash_Load method I wrote the following:

Sleep(3000);
this.Close();

Unfortunately this does not work correctly. Does anybody know what went wrong??Frown | :(

Best Regards

mat
GeneralRe: Splash Screen Pin
Colin Angus Mackay27-Oct-04 7:20
Colin Angus Mackay27-Oct-04 7:20 
GeneralRe: Splash Screen Pin
Dave Kreskowiak27-Oct-04 11:30
mveDave Kreskowiak27-Oct-04 11:30 
GeneralManipulating cmd.exe on another pc Pin
uwgrimlock27-Oct-04 6:48
uwgrimlock27-Oct-04 6:48 
GeneralRe: Manipulating cmd.exe on another pc Pin
Nick Parker27-Oct-04 8:07
protectorNick Parker27-Oct-04 8:07 
GeneralTAPI Pin
Mridang Agarwalla27-Oct-04 5:26
Mridang Agarwalla27-Oct-04 5:26 
GeneralRe: TAPI Pin
Nick Parker27-Oct-04 8:03
protectorNick Parker27-Oct-04 8:03 
GeneralRe: TAPI Pin
Michael P Butler27-Oct-04 23:25
Michael P Butler27-Oct-04 23:25 
GeneralC# p/invoke the sendmessage(Hwnd,....) Pin
ting66827-Oct-04 5:16
ting66827-Oct-04 5:16 
GeneralRe: C# p/invoke the sendmessage(Hwnd,....) Pin
Colin Angus Mackay27-Oct-04 5:33
Colin Angus Mackay27-Oct-04 5:33 
GeneralRe: C# p/invoke the sendmessage(Hwnd,....) Pin
Nick Parker27-Oct-04 8:00
protectorNick Parker27-Oct-04 8:00 
GeneralC# showing forms problem Pin
ting66827-Oct-04 5:11
ting66827-Oct-04 5:11 
GeneralSystem.Web.Mail Pin
Hugo Migneron27-Oct-04 4:50
Hugo Migneron27-Oct-04 4:50 
GeneralRe: System.Web.Mail Pin
Salil Khedkar27-Oct-04 21:10
Salil Khedkar27-Oct-04 21:10 
GeneralRe: System.Web.Mail Pin
Heath Stewart27-Oct-04 21:13
protectorHeath Stewart27-Oct-04 21:13 
GeneralRe: System.Web.Mail Pin
Hugo Migneron28-Oct-04 3:53
Hugo Migneron28-Oct-04 3:53 
GeneralRe: System.Web.Mail Pin
Heath Stewart28-Oct-04 5:49
protectorHeath Stewart28-Oct-04 5:49 
GeneralForcing Mouse to a Position Pin
MarkMokris27-Oct-04 3:28
MarkMokris27-Oct-04 3:28 

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.