Question : vb.net check isIde

hello there,
I would like to create a new test project that can show me (hello from Ide) in a msgbox from the IDE..
and when I compile the app to say (hello from exe) how can I do that?

Answer : vb.net check isIde

You can do:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
Public Class Form1
 
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If System.Diagnostics.Debugger.IsAttached Then
            MessageBox.Show("Hello from IDE")
        Else
            MessageBox.Show("Hello from EXE")
        End If
    End Sub
 
End Class
Random Solutions  
 
programming4us programming4us