B
Ben
Hi all,
I am trying to write a test console app in vb2008 express. Below is the
code:
Module Module1
Sub Main()
Dim frm As New Form1
MsgBox("a test message")
'frm.Visible = True
frm.Show()
End Sub
End Module
I have a form1. I was able to run it from the command line and have a
message box display. But when it tried to display form1, it just flashed and
went away. It did not stay on sccreen as I had thought.
I wanted to build a console application running off the server, but I use a
form to hold information for it to runs. I would use the form also for
maintenance purpose, because the information on the form can change.
Under normal operation, the application would launch, then loads the form
but remain not visible. From there the application retrieves the necessary
information to run from the form. Once it reads off the information, it
continues to run until completion.
And when I run the application from the command line with a switch like
this: myapp -d or myapp /d it should immediately display form1, where I
update my information. Form1 contains information the console application
uses to run.
My questions are (1) whether this is a correctly model? I thought about
using reading the information off a txt file but since it can be deleted or
tampered, I decided to use a form instead. I definitely don't want to hard
code it. (2) Why does the form just flashed and not stayed open ?
Thanks for sharing your thoughts.
Ben
I am trying to write a test console app in vb2008 express. Below is the
code:
Module Module1
Sub Main()
Dim frm As New Form1
MsgBox("a test message")
'frm.Visible = True
frm.Show()
End Sub
End Module
I have a form1. I was able to run it from the command line and have a
message box display. But when it tried to display form1, it just flashed and
went away. It did not stay on sccreen as I had thought.
I wanted to build a console application running off the server, but I use a
form to hold information for it to runs. I would use the form also for
maintenance purpose, because the information on the form can change.
Under normal operation, the application would launch, then loads the form
but remain not visible. From there the application retrieves the necessary
information to run from the form. Once it reads off the information, it
continues to run until completion.
And when I run the application from the command line with a switch like
this: myapp -d or myapp /d it should immediately display form1, where I
update my information. Form1 contains information the console application
uses to run.
My questions are (1) whether this is a correctly model? I thought about
using reading the information off a txt file but since it can be deleted or
tampered, I decided to use a form instead. I definitely don't want to hard
code it. (2) Why does the form just flashed and not stayed open ?
Thanks for sharing your thoughts.
Ben