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
|