Check if Designtime or Runtime (DesignMode vs RuntimMode)

CodeKeep C# Feed Maggio 15th, 2008

Description: Function checks if we’re in DesignMode or Runtime mode

Link: http://www.codekeep.net/snippets/5ae3fcbe-1e66-4286-a92b-7ce913411d18.aspx

public bool InDesignMode
{
	System.Diagnostics.Process.GetCurrentProcess().ProcessName == "devenv")
}

  • .NET
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Comments are closed.

Trackback URI |