Runtime -vs- Designer

  • Thread starter Thread starter D Miller
  • Start date Start date
D

D Miller

Is there a way I can tell if the progam is running or if it is being
editting in the designer?
 
Hi Armin,

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.

:-)

Cor
 
* "D Miller said:
Is there a way I can tell if the progam is running or if it is being
editting in the designer?

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.
 

Ask a Question

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.

Ask a Question

Back
Top