I would get a NameError if I were not.
However, I got it. This is my fault. I was getting these properties from a custom control (UserControl), not from a Form. Sorry. jan bondar Sandy Armstrong wrote: > > 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 > > -- View this message in context: http://www.nabble.com/Cannot-get-border-width-of-a-form-in-IronPython-tp21762512p21765521.html Sent from the Mono - WinForms mailing list archive at Nabble.com. _______________________________________________ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list