how to tell when in design mode in .NET 2.0

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

in 1.1 I did if DesignMode = true to check this, but in 2005 it seems to
just skip right over that and run the code I dont want to run in design
mode, anyone else have this problem? any solutions to it?
 
AFAIK it should still work. Are you certain that DesignMode is returning
true or is it that you expect it to return true? What does the Site property
return? If it's non-null, then you could check if the ISite.DesignMode
property is returning the same value as the DesignMode property.
 
it always returns false for me... i even put a check in a control i made
that if its not design mode show a message box, but when i placed it on my
form on the form designer guess what poped up?
 
Back
Top