473,397 Members | 1,974 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,397 software developers and data experts.

Running a Program in 'Silent' Mode

I have written a VB.NET application, and want to be able to invoke it with
parameters, to run without a user having to interact with it. I do still
want to see any status messages the program generates (dialog boxes are
suppressed in this mode, but there are still counters, etc. that display).

I am currently invoking the functions of the program from the Form_Load
procedure - then ultimately, the program is closed from here also, when in
this mode. I am guessing that since the Form_Load never finishes processing
completely, that is why the form is never displayed, and the user never sees
anything.

What do I need to change to allow the form (or some other form, if
necessary) to display on the screen? Should I be using something like the
Sub Main as the startup entry point, rather than a form?

- Thanks,

JRD
Feb 23 '06 #1
1 2774
Put the code in the Form Shown event instead of the Load event.
"John R. Dougherty" <Jo************@discussions.microsoft.com> wrote in
message news:77**********************************@microsof t.com...
I have written a VB.NET application, and want to be able to invoke it with
parameters, to run without a user having to interact with it. I do still
want to see any status messages the program generates (dialog boxes are
suppressed in this mode, but there are still counters, etc. that display).

I am currently invoking the functions of the program from the Form_Load
procedure - then ultimately, the program is closed from here also, when in
this mode. I am guessing that since the Form_Load never finishes
processing
completely, that is why the form is never displayed, and the user never
sees
anything.

What do I need to change to allow the form (or some other form, if
necessary) to display on the screen? Should I be using something like the
Sub Main as the startup entry point, rather than a form?

- Thanks,

JRD

Feb 24 '06 #2

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

Similar topics

3
by: TThai | last post by:
Hi, I've created an application that uses crystal report in VB dotnet environment. I've created an MSI package to be installed on the client pc to make the crystal report to work. However, the...
3
by: TThai | last post by:
Hi, I've created an application that uses crystal report in VB dotnet environment. I've created an MSI package to be installed on the client pc to make the crystal report to work. However, the...
9
by: Michael.Suarez | last post by:
Suppose I have a program that prompts you with a dialogbox to enter a password. If you get the password correct, it allows you into the program, else it kills the program. Suppose that when I...
0
by: WebCM | last post by:
PDO offers 3 modes of displaying errors: - silent mode - no errors - warnings - Warning: - exceptions - Exception: Which of them is the fastest and the most adequate for applications like CMS...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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.