473,324 Members | 2,248 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,324 software developers and data experts.

Application start-up events without start-up form

Hi

My app needs to use the MyApplication_Startup and
MyApplication_StartupNextInstance events but do not need the start-up form.
How can I get rid of the start-up form as I can't select the Sub Main when
application framework is enabled.?

Thanks

Regards
Jun 27 '08 #1
4 4522
On Apr 23, 6:10*pm, "John" <i...@nospam.infovis.co.ukwrote:
Hi

My app needs to use the MyApplication_Startup and
MyApplication_StartupNextInstance events but do not need the start-up form..
How can I get rid of the start-up form as I can't select the Sub Main when
application framework is enabled.?

Thanks

Regards
You can't... You have to use a form as your startup object when you
use the framework.

--
Tom Shelton
Jun 27 '08 #2
What is it you are trying to do ?
If you want to change the startup from at runtime you can do that in the
Startup event by setting Me.MainForm to the appropriate form.

"John" <in**@nospam.infovis.co.ukwrote in message
news:eV****************@TK2MSFTNGP03.phx.gbl...
Hi

My app needs to use the MyApplication_Startup and
MyApplication_StartupNextInstance events but do not need the start-up
form. How can I get rid of the start-up form as I can't select the Sub
Main when application framework is enabled.?

Thanks

Regards

Jun 27 '08 #3
Hi

I need the vb.net app to work in background (so to speak) as it will get an
event by an external app periodically by it (vb.net app) being called with a
parameter by the external app. I am using MyApplication_Startup and
MyApplication_StartupNextInstance events to pick up that command line
parameter but as I need to do this in background I do not need to show the
form.

Should I use an app type other than Winform to accomplish this?

Thanks

Regards
"Bill McCarthy" <Bi**@N0SPAM.comwrote in message
news:44**********************************@microsof t.com...
What is it you are trying to do ?
If you want to change the startup from at runtime you can do that in the
Startup event by setting Me.MainForm to the appropriate form.

"John" <in**@nospam.infovis.co.ukwrote in message
news:eV****************@TK2MSFTNGP03.phx.gbl...
>Hi

My app needs to use the MyApplication_Startup and
MyApplication_StartupNextInstance events but do not need the start-up
form. How can I get rid of the start-up form as I can't select the Sub
Main when application framework is enabled.?

Thanks

Regards


Jun 27 '08 #4
Yeh, I'd say just use a Sub Main. Uncheck the "Enable Application Framework"
box, then select a Sub Main in the startup object drop down.

"John" <in**@nospam.infovis.co.ukwrote in message
news:eO**************@TK2MSFTNGP02.phx.gbl...
Hi

I need the vb.net app to work in background (so to speak) as it will get
an event by an external app periodically by it (vb.net app) being called
with a parameter by the external app. I am using MyApplication_Startup and
MyApplication_StartupNextInstance events to pick up that command line
parameter but as I need to do this in background I do not need to show the
form.

Should I use an app type other than Winform to accomplish this?

Thanks

Regards
"Bill McCarthy" <Bi**@N0SPAM.comwrote in message
news:44**********************************@microsof t.com...
>What is it you are trying to do ?
If you want to change the startup from at runtime you can do that in the
Startup event by setting Me.MainForm to the appropriate form.

"John" <in**@nospam.infovis.co.ukwrote in message
news:eV****************@TK2MSFTNGP03.phx.gbl...
>>Hi

My app needs to use the MyApplication_Startup and
MyApplication_StartupNextInstance events but do not need the start-up
form. How can I get rid of the start-up form as I can't select the Sub
Main when application framework is enabled.?

Thanks

Regards


Jun 27 '08 #5

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

Similar topics

9
by: J. Baute | last post by:
I'm caching data in the Application object to speed up certain pages on a website The main reason is that the retrieval of this data takes quite a while (a few seconds) and fetching the same data...
2
by: sameer | last post by:
Hi All, We had developed a .Net application which has the following environment Uses the No touch deployment concept Uses framework 1.1 on client and server machine, Visual studio 2003, Sql...
2
by: evangeline | last post by:
We have ASP application running on IIS 5.1 and Windows 2000 server. The ASP application has few Application variables setup in global.asa. Something like this: Application.Lock()...
43
by: Davey | last post by:
I am planning on developing an application which will involve skills that I have very little experience of - therefore I would appreciate comments on my initial design thoughts. Overview on...
8
by: nickdu | last post by:
I'm trying to isolate "applications" into their own application domain within a single process. I've quoted applications because it's a logical representation of an application. Basically it...
1
by: Chris Leffer | last post by:
Hi. Reading some Microsoft materials about asp.net I came into two doubts. The following sentence is found on the topic "Application State" in the NET Framework documentation: "Calling Lock...
4
by: tommy | last post by:
hello everbody, i write a little asp-application with forms-authentication. i copy my aspx-files with web.config to my webspace and i get the error above... i tried to set the...
9
by: Wayne Wengert | last post by:
I built an ASP application and it runs fine on my local IIS. I am trying to move the application to my web service (ISP) out on the internet. I've read several of the help articles but they all...
3
by: Sean | last post by:
HI There, I am having trouble deploying my .aspx pages to a remote server, I have made changes to the config file and it still returns an error. I have also contacted the server administrator to...
11
by: Jochen Neyens | last post by:
We're in the process of developing an e-commerce application that vets can use to order medicines. One of the requirements is that the web application can communicate with a locally installed...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.