Solved

Modal Splash Screen

Posted on 2007-03-30
3
761 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
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.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

627 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