473,461 Members | 1,399 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Startup CMD problems

I want to pass some startup commands to my application using a shortcut. I have worked out how to do
this no problems at all. I have a module and in it a SUB Main. In Main I do the parsing of the
command line parameters and store what I need.
I the create a new instance of my form that I want by

DIM myForm as New Form1

And then open it by using

myForm.OpenDialog

I use OpenDialog because the program would quit otherwise and I want to wait for the main program to
finish first.

However I find that because I sometimes start my form hidden that the whole program runs perfectly
once and then as soon as it has the program quits.

Any suggestions? I would like to take the cmdline args on the Form_Load but cant see them there.
Nov 23 '05 #1
1 1084
CT
I'm not sure I totally understand your problem, but if you use
Application.Run(New myForm) in the Sub Main to show your form, your app will
not stop immediately.

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"John Veldthuis" <jo***@no.spamo.paradise.net.nz> wrote in message
news:du********************************@4ax.com...
I want to pass some startup commands to my application using a shortcut. I
have worked out how to do
this no problems at all. I have a module and in it a SUB Main. In Main I
do the parsing of the
command line parameters and store what I need.
I the create a new instance of my form that I want by

DIM myForm as New Form1

And then open it by using

myForm.OpenDialog

I use OpenDialog because the program would quit otherwise and I want to
wait for the main program to
finish first.

However I find that because I sometimes start my form hidden that the
whole program runs perfectly
once and then as soon as it has the program quits.

Any suggestions? I would like to take the cmdline args on the Form_Load
but cant see them there.

Nov 23 '05 #2

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

Similar topics

6
by: Xerxes | last post by:
Hi, at startup I get three similar error messages about three DLLs: php_sqlite.dll, php_curl.dll and php_gd2.dll. I searched the group for similar problem but the solutions proposed there did not...
699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
1
by: John Michael | last post by:
I have created some password routines to protect certain forms from access without a password. This allows me to create some security for apps that will be used on diff machines for users that...
7
by: cefrancke | last post by:
I cant seem to find a straight answer on the following. I want to programmatically hide all menus except a basic custom report menu (during report preview) and right click pop-up A-Z sorting on...
2
by: Simon Harvey | last post by:
Hi all, I was wondering how most developers handle the initial startup of their Windows Forms applications? When you make an application in Visual Studio, the IDE places Main in the form that...
4
by: Benoit Martin | last post by:
How can I make sure that my Windows application will have the focus at startup? Currently, if there is an Explorer window open when I launch my app for example, the Explorer window will still have...
0
by: Sim Zacks | last post by:
I reconfigured the redhat startup script for postgresql to work with version 8 and that is working fine. I thought I could put autovacuum in the startup script and that didn't cause any problems,...
2
by: mark2 | last post by:
Hi, I have unchecked a lot programs in the startup list in my new Vista PC. Problems: 1. There are still two icons (they are not for the programs with check in the startup list) left in the right...
0
by: ycinar | last post by:
hey all, i am working on a Java project using JBuilder.. when i build my code its fine, but when comes to run, it doesnt run and displays the following logs.. i think there is JDK conflict.. ...
32
by: Pedro Borges | last post by:
Hi guys, Is there a way to improve the interpreter startup speed? In my machine (cold startup) python takes 0.330 ms and ruby takes 0.047 ms, after cold boot python takes 0.019 ms and ruby...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

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.