473,405 Members | 2,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Launch a new form and close the first

I'm having troubles trying to do this with .net...

How can I have the startup object (frmSplash) open up another form (frmMain)
and then close itself?

I used to be able to do this with 6, but it seems to be different with .net.
If i use Me.ActiveForm.Close() then the whole application shuts down. I'm
using Me.ActiveForm.Hide() right now as a workaround, but isn't there a
better way to do it?
Nov 20 '05 #1
2 1210
In article <#h*************@TK2MSFTNGP11.phx.gbl>,
sk*************@blatant.com says...
I'm having troubles trying to do this with .net...

How can I have the startup object (frmSplash) open up another form (frmMain)
and then close itself?

I used to be able to do this with 6, but it seems to be different with .net.
If i use Me.ActiveForm.Close() then the whole application shuts down. I'm
using Me.ActiveForm.Hide() right now as a workaround, but isn't there a
better way to do it?


You need to handle the "MainForm" property of the current
ApplicationContext. See:

http://tinyurl.com/2uddh

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Nov 20 '05 #2
add timer control on frmSplash
frmMain.show()

Skylar Challand wrote:
I'm having troubles trying to do this with .net...

How can I have the startup object (frmSplash) open up another form (frmMain)
and then close itself?

I used to be able to do this with 6, but it seems to be different with .net.
If i use Me.ActiveForm.Close() then the whole application shuts down. I'm
using Me.ActiveForm.Hide() right now as a workaround, but isn't there a
better way to do it?


Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: D Witherspoon | last post by:
My application takes 5 or 6 seconds to load because of the time required to communicate with web services and load from the database. In the meantime I'd like to show a splash screen in a seperate...
3
by: ThunderMusic | last post by:
Hi, I'm trying to have a MSN Messenger like form/app closing behavior. When I click on the X button, I only want the form to disappear and when I double-click on the notify icon or right-click...
1
by: Lady_A | last post by:
I got an application with an html,css and js UI. The UI basically creates an ActiveX object, which is an unmanaged C++ COM dll which in his turn creates other COM C++ dlls and C# assemblies. At...
5
by: Sherwood Page | last post by:
Greetings, I have a "newbie" question related to forms. I have the following code in which I display a second form when a button on the first form is pressed (using the "Click" event). ...
1
by: Jacob | last post by:
I have several web apps that I want to redirect to a new page, but have that page open in a new browser window. The basic scenario is that I have a CrystalReport object that gets created and...
1
by: dwilliamjoe | last post by:
VB.net, launch procedure, close form, the whole APP is deactivated. When I say deactivated, other applications (Wind Explorer, My computer, Ect...) come to the foreground and my app goes to the...
5
by: AP | last post by:
IS there a way to run a procedure if the users close access directly rather than closing a menu screen that I have built? There is an event that works on close for this form, but it doesnt seem to...
5
by: Neil | last post by:
"lyle" <lyle.fairfield@gmail.comwrote in message news:48c3dde7-07bd-48b8-91c3-e157b703f92b@f3g2000hsg.googlegroups.com... Question for you. I'm doing something similar, only, instead of opening...
6
by: tempnode | last post by:
I have a problem that I can't seem to solve: I need to write a C++ app that will run off of a floppy. Basically, I will boot into DOS (from a floppy), and run my executable from the floppy. ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.