Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Modal Splash Screen

Posted on 2007-03-30
3
Medium Priority
?
769 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 1000 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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

670 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