I was writting a message that D should not write two messages, because you
are the specialist for this in this newsgroup and that you maybe was not up
that early because it are hollidays in the EU.
I was right about the specialist I think and wrong about up not that early.
If you place a control on a form, it doesn't run in design mode any more. I
currently don't have access to VS.NET, bug you may want to experiment with:
\\\
#If Debug Then
Console.WriteLine("Debug mode.")
#Else
Console.WriteLine("Release mode.")
#End If
///
You can check if a debugger is attached by calling
'System.Diagnostics.Debugger.IsAttached'.
For usercontrols/..., have a look at their 'DesignMode' property.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.