Solved

Modal Splash Screen

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

821 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