As David says, this makes no sense on its own. Are you confusing Close / Open with Minimise / Maximise? If not, then some action in your code is doing different things. Do you save values? Do a search in your code for the control ID of the spinbutton and see what you do with it. Unless someone (ie, YOU) disables the control, it will be at whatever state it is set to be in the dialog resource. You need to track down where you disable it, and see why that is different in the two scenarios. Iain.