Hi David,
>So you can't reproduce the problem? Hmmm..
Maybe I'm trying to reproduce something different than you do... The only effect with lines is that if I set all columns to visible there's one ghost line that only disappears after setting the last column back to visible. This line is also only visible at design time.
> I am using writexpression(), **I think**, because from what I've read, that is the 'proper' way to assign values to properties, at design time.
It depends on what kind of values you need to assign. WriteExpression is the programmatic way of clicking the "fx" button in the properties window. It allows you to specify an entire expression that is evaluated the first time a class or form is loaded. If all you want to do is to assign a static value, you can directly assign it to the reference in the class designer.
The only exception for both cases are array properties. Those can only be initialized in code that you can create with the WriteMethod() method.
--
Christof