How do I make a splash screen?

  • (3 Pages)
  • +
  • 1
  • 2
  • 3

33 Replies - 7163 Views - Last Post: 30 January 2013 - 03:27 PM Rate Topic: -----

#16 Darkranger85  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 148
  • Joined: 31-August 12

Re: How do I make a splash screen?

Posted 31 August 2012 - 02:07 PM

View Postmodi123_1, on 31 August 2012 - 01:46 PM, said:

Upload a screen shot of what you do see.

Attached image(s)

  • Attached Image

Was This Post Helpful? 0
  • +
  • -

#17 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9579
  • View blog
  • Posts: 36,289
  • Joined: 12-June 08

Re: How do I make a splash screen?

Posted 31 August 2012 - 02:10 PM

... and what version of VS is that?
Was This Post Helpful? 0
  • +
  • -

#18 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 3662
  • View blog
  • Posts: 11,480
  • Joined: 05-May 12

Re: How do I make a splash screen?

Posted 31 August 2012 - 02:14 PM

That is VS2010. I think I'm going blind because I'm not seeing the Splash Screen option either.
Was This Post Helpful? 0
  • +
  • -

#19 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9579
  • View blog
  • Posts: 36,289
  • Joined: 12-June 08

Re: How do I make a splash screen?

Posted 31 August 2012 - 02:18 PM

I am guessing the.. Express edition?
Was This Post Helpful? 0
  • +
  • -

#20 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 3662
  • View blog
  • Posts: 11,480
  • Joined: 05-May 12

Re: How do I make a splash screen?

Posted 31 August 2012 - 02:19 PM

I think modi123_1 was thinking of WPF where you can go: Right click on Project>Properties... Add window... Select WPF. Select Splash Screen:
Attached Image
Was This Post Helpful? 0
  • +
  • -

#21 Darkranger85  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 148
  • Joined: 31-August 12

Re: How do I make a splash screen?

Posted 31 August 2012 - 02:21 PM

Yes, it is the express edition.
Was This Post Helpful? 0
  • +
  • -

#22 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 3662
  • View blog
  • Posts: 11,480
  • Joined: 05-May 12

Re: How do I make a splash screen?

Posted 31 August 2012 - 02:21 PM

View Postmodi123_1, on 31 August 2012 - 02:18 PM, said:

I am guessing the.. Express edition?


I've got VS2010 Ultimate, and my WinForms screen for the Application tab looks the same.
Was This Post Helpful? 0
  • +
  • -

#23 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9579
  • View blog
  • Posts: 36,289
  • Joined: 12-June 08

Re: How do I make a splash screen?

Posted 31 August 2012 - 02:23 PM

No.. I am talking about a run of the mill windowed desktop application.

Mine most certainly does not. I am looking at VS 2010 pro.
Was This Post Helpful? 0
  • +
  • -

#24 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 3662
  • View blog
  • Posts: 11,480
  • Joined: 05-May 12

Re: How do I make a splash screen?

Posted 31 August 2012 - 02:24 PM

I just tried VS2012 Ultimate. Same issue with WinForms:
Attached Image
Was This Post Helpful? 0
  • +
  • -

#25 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 3662
  • View blog
  • Posts: 11,480
  • Joined: 05-May 12

Re: How do I make a splash screen?

Posted 31 August 2012 - 02:38 PM

Now, on the other hand, if I created a VB application (instead of C#), then the Splash screen option is available:
Attached Image

(Sorry only got a screen shot for VS2012. I couldn't try VS2010 because I deliberately chose not to install VB.NET in VS2010. VS2012 Ultimate didn't give me a choice. I got VB.NET with C# even if I wanted just C#.)
Was This Post Helpful? 0
  • +
  • -

#26 bulblight  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 29-January 13

Re: How do I make a splash screen?

Posted 29 January 2013 - 04:51 PM

In Program.cs you can just do this.

static void Main()
{
    IntroForm introForm = new IntroForm();
    if (introForm.ShowDialog() != DialogResult.OK)
    {
        Application.Exit();
        return;

    }

    Application.Run(new MainForm());
}


Was This Post Helpful? 0
  • +
  • -

#27 bulblight  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 29-January 13

Re: How do I make a splash screen?

Posted 29 January 2013 - 04:58 PM

I should also add to make sure that you put 2 buttons on the splash screen and set the DialogResult property for each to OK or Cancel - no coding required for their click events.

Hope this helps. No questions are the wrong question by the way :)
Was This Post Helpful? 0
  • +
  • -

#28 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 3662
  • View blog
  • Posts: 11,480
  • Joined: 05-May 12

Re: How do I make a splash screen?

Posted 30 January 2013 - 06:52 AM

Just for my edification... when did splash screens start having cancel buttons? I must be showing my age because in my time, splash screens were put up to let the user know that the program is starting up, but it's going to take a while to get the rest of the program up into a running state. There was no way to cancel out of the splash screen and abort the program.

Also with post #26, why call Application.Exit() when you can simply return out of main() ?

As for there being no wrong questions: that is true. There's just the wrong time or audience to ask them. (ex. "Like when did your herpes symptoms subside?") :)

This post has been edited by Skydiver: 30 January 2013 - 06:55 AM

Was This Post Helpful? 0
  • +
  • -

#29 Curtis Rutland  Icon User is offline

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 4577
  • View blog
  • Posts: 8,019
  • Joined: 08-June 10

Re: How do I make a splash screen?

Posted 30 January 2013 - 08:37 AM

Quote

Just for my edification... when did splash screens start having cancel buttons? I must be showing my age because in my time, splash screens were put up to let the user know that the program is starting up, but it's going to take a while to get the rest of the program up into a running state. There was no way to cancel out of the splash screen and abort the program.


Office 2010 finally added a close button on their splash screen that will start up. With event-driven programming, it's easier to make a splash screen that can respond to UI commands while resources load in the background on another thread.
Was This Post Helpful? 0
  • +
  • -

#30 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 3662
  • View blog
  • Posts: 11,480
  • Joined: 05-May 12

Re: How do I make a splash screen?

Posted 30 January 2013 - 09:32 AM

Ah, interesting, I must have been lucky enough to have fast enough machines that I never noticed those on my machine. Since I'm not fast enough to target my mouse on the Cancel or X buttons on the splash screen, I tried pressing the Escape key while the screen is up. Anyway pressing Escape didn't cause any of my Office apps to exit out. It just brought me to the running program. Perhaps I'm not fast enough to press Escape either.
Was This Post Helpful? 0
  • +
  • -

  • (3 Pages)
  • +
  • 1
  • 2
  • 3