On 01/31/2009 03:44 AM, vronskij wrote:
>
>   borderWidth = (self.Width - self.ClientSize.Width) / 2
>   titleBarHeight = self.Height - self.ClientSize.Height - borderWidth
>
>   print borderWidth
>   print titleBarHeight
>
> I get 0 and 0.

Are you really performing the print right after you set those variables? 
If they're happening in different methods, you should probably prefix 
with "self.".  Just a guess...

Sandy
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to