Hi John,
Can you check for Debugger.IsAttached? I do this for some things and it works pretty good.
if(System.Diagnostics.Debugger.IsAttached)
{
this.btnFullScreen.Visible = true;
}
else
{
this.btnFullScreen.Visible = false;
}
>Hi,
>I have code to call my method in class constructor. I want to prevent it to be called during development mode. I added code to check for DesignMode before execute the actual code.
>
>However, I found that, designmode return wrong value. It return false during dev mode (using messagebox).
>
Tim
Timothy Bryan