473,405 Members | 2,160 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.

Changing Splash form and Startup Object at runtime

Pakmarshal
Hi All,
I am developing an windows application in VB 2008, My requirment is such that I have to change the applications Splash and Startup object on the basis of "Custom Constants" (Compilation Constants).

As far as I have .Net idea it should be done in Application.Startup Event (guide me if i am wrong)

Now, in Application.Startup_Event when I write the code

Expand|Select|Wrap|Line Numbers
  1.     Private Sub MyApplication_Startup(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) Handles Me.Startup
  2.  
  3.       My.Application.SplashScreen = SplashScreen2
  4.  
  5.       My.Application.MainForm = Form2
  6.  
  7.  
  8.     End Sub
The application dont work as desired, instead it starts with Form2 (which is OK), while in case of Splash it doesnt changes the splash form.

Can anyone guide me in this regard?

Thanks,
Maverick.
Jun 24 '10 #1
0 1311

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Dave | last post by:
Title is pretty self explanatory. I don't want my application to start with a form loading, I want some code to be run when the application starts. Where do I put this code when I select "Sub...
0
by: mark | last post by:
Does anyone know if there is a way of having a dynamic startup object in a .NET application? I have a windows application which I would like to be able to run as a Windows Forms app or a Windows...
12
by: chinkuang | last post by:
Hi Everyone: I have a question here: I used a startup object to protect my application - whenever PC starts up, I will check the setting of my application like registry, program files and so on,...
0
by: blue_nirvana | last post by:
I have a program that automatically checks for an updated version on the network and if it finds it, it retrieves the new version and restarts. I have a splash screen that has an animated gif...
4
by: Graham Charles | last post by:
Hello, I'm finding that if I set the "Cancel" property during the AppStartup event, the application's Splash form remains loaded. A call to the Close property of the SplashForm at that point...
2
by: John | last post by:
Hi I have created a splash form with no border. When I try to open this form in my main form using DoCmd.OpenForm "Splash", , , , , acDialog, the splash form opens with a form border. If I use...
7
by: Bob | last post by:
I have a winforms app written in Vs2005 Vb.Net, The setiings are to Enable the application Framework and I defined a splashform. Works fine if no errors occur. I do a checking on the mainform load...
8
by: cj | last post by:
In 2003 I sometimes changed the startup object of a project to Sub Main which was found in Module1.vb. I upgraded one such project to 2005 and I notice in the properties page for the project that...
0
by: jasihere | last post by:
Hi, I am Jaser Sidiq,currently working in Vb.NET.I have an question to ask.While working with windows application in .NET 2005 i cann't set my SubMain() as startup...
1
by: menyki | last post by:
Pls look at below splash form display code sample. where in design view am i suppose to write the code. i have only splash_LoadByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.