Hello everyone!
I am looking for suggestions on how to see what an application is doing(by way of components attached to the main form, be it labels or Status Bar), when that application runs without any input action from the user.
To explain in more detail:
I have an application(just one form), that executes several subroutines, depending on what buttons the user is pressing. These subroutines show the progress of their code through messages in a label attached to a StatusStrip component.
I have been asked to implement in this application the ability to execute the above mentioned subroutines in an "unsupervised, no user input required" mode. So, basically, based on the value of some command line parameters, the application should execute the same code that gets run when the user does work with the application.
Ideally, I would like to be able to see, in "unsupervised" mode, the messages shown by the StatusStrip component when the application runs in "supervised" mode. But, so far, it seems the only workable avenue of implementing "unsupervised" mode is to place the "autorun" code in the Form_Activated(...) event. Looking at my legacy VB6 applications for which I have implemented this kind of functionality, I noticed that I had placed the "autorun" code at the end of the Form_Load() (with the restriction that I wouldn't be able to close the application, since the program would get upset if I would attempt to close it in its Form_Load(...) event). If wanting to see the visual feedback in such type of execution mode is a very non-trivial task, I don't have a problem giving up on it, but I would sure like to know if there is a much better way("the right and proper way') to do "unsupervised" mode.
So, is it possible in VB.NET 2005 to achieve this kind of functionality in a much more streamlined and elegant way, when compared with VB6? If "Yes", how? Ever since I started working with VB.NET, I have hoped that, when I would get to the point where I would have to convert/implement this type of feature, there would be a more intuitive way of doing this, but, so far, it seems the only reasonable thing to do is just to replicate line for line what I did in VB6.
Thank you!
I am looking for suggestions on how to see what an application is doing(by way of components attached to the main form, be it labels or Status Bar), when that application runs without any input action from the user.
To explain in more detail:
I have an application(just one form), that executes several subroutines, depending on what buttons the user is pressing. These subroutines show the progress of their code through messages in a label attached to a StatusStrip component.
I have been asked to implement in this application the ability to execute the above mentioned subroutines in an "unsupervised, no user input required" mode. So, basically, based on the value of some command line parameters, the application should execute the same code that gets run when the user does work with the application.
Ideally, I would like to be able to see, in "unsupervised" mode, the messages shown by the StatusStrip component when the application runs in "supervised" mode. But, so far, it seems the only workable avenue of implementing "unsupervised" mode is to place the "autorun" code in the Form_Activated(...) event. Looking at my legacy VB6 applications for which I have implemented this kind of functionality, I noticed that I had placed the "autorun" code at the end of the Form_Load() (with the restriction that I wouldn't be able to close the application, since the program would get upset if I would attempt to close it in its Form_Load(...) event). If wanting to see the visual feedback in such type of execution mode is a very non-trivial task, I don't have a problem giving up on it, but I would sure like to know if there is a much better way("the right and proper way') to do "unsupervised" mode.
So, is it possible in VB.NET 2005 to achieve this kind of functionality in a much more streamlined and elegant way, when compared with VB6? If "Yes", how? Ever since I started working with VB.NET, I have hoped that, when I would get to the point where I would have to convert/implement this type of feature, there would be a more intuitive way of doing this, but, so far, it seems the only reasonable thing to do is just to replicate line for line what I did in VB6.
Thank you!