Modless Form - How???

  • Thread starter Thread starter KenR
  • Start date Start date
K

KenR

I'm trying to create a modeless form with one textbox on
it and one progress meter. Nothing else. I am not
passing it any parameters. It will be called from a
module which is the startup object. I have the following
statements in the module:

Friend form as New Form1

form.txtMessage.Text = "Displayed Text here .."
form.pbar1.Value = 0
form.Show()

When I run it, just the form displays, but not the
controls. All the controls display fine using ShowDialog,
but I need the form to be modeless.

Thanks for any help.
 
* "KenR said:
I'm trying to create a modeless form with one textbox on
it and one progress meter. Nothing else. I am not
passing it any parameters. It will be called from a
module which is the startup object. I have the following
statements in the module:

Friend form as New Form1

form.txtMessage.Text = "Displayed Text here .."
form.pbar1.Value = 0
form.Show()

When I run it, just the form displays, but not the
controls. All the controls display fine using ShowDialog,
but I need the form to be modeless.

The code should work. Which code are you executing directly after the
call to the 'Show' method?
 
I just go on to process a text file. I want to refresh
the screen every 100 records as to the progress. In VB6,
there was the DoEvents but I can't seem to find the
correct .net statement which can be called by the module.
 
I just go on to process a text file. I want to refresh
the screen every 100 records as to the progress. In VB6,
there was the DoEvents but I can't seem to find the
correct .net statement which can be called by the module.

Have the IDE search for DoEvents and you will find Application.Doevents.
 
* said:
I just go on to process a text file. I want to refresh
the screen every 100 records as to the progress. In VB6,
there was the DoEvents but I can't seem to find the
correct .net statement which can be called by the module.

'Application.DoEvents'.
 
Back
Top