Splashscreen problem (partly...)

D

David

This is quite a strange one...

My device is WM6 and I am developing on CF 1. I have written a splashscreen
on a new form and call it from form1 like so...

public Form1()
{

this.MinimizeBox = false;
splash form = new splash();
form.ShowDialog();

InitializeComponent();

}

This sort of works perfect for me on my device (though I actually do get a
gap between the splash screen and the program where I can see what was on
screen before, though I am not too concerned).

I have deployed the app to a WM5 device. I run the app and my splashscreen
appears, disappears (as it should) but then the app just doesn't appear,
however, if I click the icon again, the app actually starts without the
splash screen, which suggests that the app is actually running from first
click, just not visible.

Any ideas?

My splashscreen form code is...

public splash()
{

this.FormBorderStyle = FormBorderStyle.None;
this.WindowState = FormWindowState.Maximized;
this.BackColor = Color.White;
Timer timer = new Timer();
timer.Interval = 4000;
timer.Tick += new EventHandler(timer_Tick);
timer.Enabled = true;

InitializeComponent();

}

void timer_Tick(object o, EventArgs e)
{
this.Close();
}


(There was a this.TopMost = true; but that failed to compile for some
reason.)


--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
 
S

Simon Hart [MVP]

I've never had a problem with this in the past, except I tend to fire the
splash screen (load) on a separate thread from within the main form. Another
thing to try is to use SetForeground for you're main form after the splash
screen is closed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top