Solved

Modal Splash Screen

Posted on 2007-03-30
3
719 Views
Last Modified: 2012-06-27
Hi,

I've got a splahs screen and i'm calling it via frmSplash.ShowSplashScreen();

            public static void ShowSplashScreen()
            {
                  if(null != _splash) return;
                  
                  _thread = new Thread(new ThreadStart(frmSplash.ShowForm));
                  _thread.IsBackground = true;
                  _thread.ApartmentState = ApartmentState.STA;
                  _thread.Start();

            }

Then....

static public void SetReferencePoint()
            {
                  if( _splash == null ) return;
                  _splash.SetReferenceInternal();

            }
            #endregion


which does......

private void SetReferenceInternal()
            {
                  if( _dTSet == false )
                  {
                        _dTSet = true;
                        _start = DateTime.Now;
                        ReadIncrements();
                  }
                  double msecs = ElapsedMilliSeconds();
                  _actualTimes.Add(msecs);

                  _lastCompletionFraction = _completionFraction;

                  if( null != _previousCompletionFraction && _index < _previousCompletionFraction.Count )
                        _completionFraction = (double)_previousCompletionFraction[_index++];
                  else
                        _completionFraction = ( _index > 0 )? 1: 0;
            }


When I say:

                                 if (null != _auth)
                        {
                              MainForm frm = new MainForm(_auth);
                              frm.ShowDialog;                              
                        }

The splash appears but it's modal ie it sits on my screen and I cannot place other apps over it taking up valuable screen real-estate

How would I change this?

Thanks
0
Comment
Question by:bowemc
  • 2
3 Comments
 
LVL 12

Expert Comment

by:ShazbotOK
ID: 18823803
Change it from ShowModal to ShowModless
0
 

Author Comment

by:bowemc
ID: 18823875
I presume you mean change the line:  frm.ShowDialog();

I'm using .net 1.1 not too sure it thats the issue but using the telesonic I do not have access to ShowModaless

I can't see where i have ShowModal ?
0
 
LVL 12

Accepted Solution

by:
ShazbotOK earned 500 total points
ID: 18824548
Sorry got my language wires crossed...

In WinForms use of ShowDialog is equiv to ShowModal
                     use of Show is equiv to ShowModless
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now