Software Development Network>> VS Team System>> message box show without stopping program
In a console application.
Is there a way to display a message box that does not stop the execution of the program
the sleep statement is there only to make sure that I see the form before the program ends.
I only have one label on the form, the one with the relevant message
I do not have anything on the form1 load event.
I am not changing any properties
The whole code is
Imports
Module
f.Visible =
f.Show()
Sleep(5000)
End
Public
Use ShowDialog instead of show...this will keep the form open until you decide to close it...
"relevant message" are you setting that in the designer
You are not using McAfee Version 8
WHat do you have in the form1 load event...are you hiding any of the controls...or changeing any of the properties on start-up....Are you using McAfee version 8
I am not familiar with a second thread.
I have tried the form.show without luck
The form does show but the buttons areas are transparent and the labels cannot be seen.
No need to import threading and get rid of the sleep statement....
How many buttons and labels have you placed on the form
message box show without stopping program
SarathChandar
the sleep statement is there only to make sure that I see the form before the program ends.
I only have one label on the form, the one with the relevant message
Jubber
I do not have anything on the form1 load event.
I am not changing any properties
The whole code is
Imports
System.Threading.ThreadModule
Module1 Sub Main() Dim f As New Form1f.Visible =
Truef.Show()
Sleep(5000)
End SubEnd
ModulePublic
Class Form1End
ClassKikkoz
ACCOUNTINGONLINE.US
Use ShowDialog instead of show...this will keep the form open until you decide to close it...
"relevant message" are you setting that in the designer
You are not using McAfee Version 8
David J Oldfield
WHat do you have in the form1 load event...are you hiding any of the controls...or changeing any of the properties on start-up....Are you using McAfee version 8
RichLeyshon
I am not familiar with a second thread.
I have tried the form.show without luck
Module
Module1 Sub Main() Dim f As New Form1f.Visible =
Truef.Show()
End SubEnd
ModuleThe form does show but the buttons areas are transparent and the labels cannot be seen.
Surfsune
No need to import threading and get rid of the sleep statement....
How many buttons and labels have you placed on the form