"DHarry" <DH****@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
Why not use arguments when you open your app with the IDE?!
fwiw, here's some code that involves setting the 'design time' command line
to some "extremely hard to type" argument and testing for that to "assume"
IDE... fwiw, I got those characters from the character map utility. They're
Chr$(&HEE), Chr$(&HD0) and Chr$(&HCA), in case people can't see them here,
they spell "IDE"
'======
Public Class Form1
Private mbRunningIDE As Boolean
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
If Command() = "īŠŹ" Then
mbRunningIDE = True
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
If mbRunningIDE Then
MsgBox("We're running in the IDE")
End If
End Sub
End Class
'======
--
Ken Halter - MS-MVP-VB (visiting from VB6 world) -
http://www.vbsight.com
Please keep all discussions in the groups..