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



Answer this question

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.Thread

    Module Module1

    Sub Main()

    Dim f As New Form1

    f.Visible = True

    f.Show()

    Sleep(5000)

    End Sub

    End Module

    Public Class Form1

    End Class


  • Kikkoz

    You could do it with another thread, or create your own form and use Form.Show (instead of Form.ShowDialog).

  • 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 Form1

    f.Visible = True

    f.Show()

    End Sub

    End Module

    The 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



  • message box show without stopping program