Firstly I would avoid the use of Sheridan components - I'm not convinced they work under Windows 7.
Most people used PictureBoxes to contain buttons on MDI forms. Note I say "used" as this language is no longer supported and most developers are migrating programs to .NET (where they are able). Also MDI was/is a horrible user experience at the best of times.
Having said that, I presume the error is being produced by the line
SSTransition1.Visible = True
Based on your statement
Quote:
Unloading the form Change Password
and the lines
Unload Me
MDIForm1.Show
immediately above it, I also presume that this offending line is in the child form "Change Password". But from your comment
Quote:
i use sstransition to attach the command buttons on mdi form
SSTransition1
is a control on the MDI Parent Form.
So either
A) Put
SSTransition1.Visible = True
in an appropriate event
on the MDI form, or
B) Use
MDIForm1.SSTransition1.Visible = True
Better yet, do not use an MDI child form and don't bother hiding the buttons. Just display the "Change Password" form as Modal. The user will not be able to click the underlying buttons until the modal form is closed.