Solved

Modal Splash Screen

Posted on 2007-03-30
3
731 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Chat Room 1 43
In C#, how would you convert a byte array to its integer value equivalent? 12 37
c# LinkButton OnClientClick 2 33
Reset asp.net login password 4 25
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

943 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

10 Experts available now in Live!

Get 1:1 Help Now