By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,660 Members | 1,218 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,660 IT Pros & Developers. It's quick & easy.

Form problem..

P: n/a
EMW
I have one form which is my main form and has 4 option buttons and two
regular buttons, one for saving and the other for canceling the program.
When the user select an option button, a new form is opened and he can fill
in some fields by using a context menu (standard answers).
When he is finished, tapping on the save button, the form is hidden and the
user is returned to the main form, where an image is drawn that the form is
filled in and done.
After that the form is disposed

After the second button he chooses the third option, but the form of option
2 is show, by either tapping on save or cancel, the form is hidden/closed,
and the form that should have been displayed is opened.
When clicking on the save or cancel button, an exception error occurs, a
disposed exception.
The same thing happens when the second option is skipped and he goes first
to the third option and then the fourth.
Instead of showing the fourth, the third is shown and after closing it, a
disposed exception appears.

Basicly this is what is done:
.. create instance of new form
.. set the textboxes with text from dataset table
.. show the form with showdialog
.. dispose of the form when it returns

Nothing fancy, but with that strange error.
Who can help me with this??
Nov 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Eric,

When you talk about forms it is forever to know if it is
a MDI child
a form opened with showdialog
a form openend with show,

Not knowing that gives in this kind of situations forever misunderstandings.

Maybe you can let ut know that?

Cor

"EMW" <so*****@MikroZoft.com>
I have one form which is my main form and has 4 option buttons and two
regular buttons, one for saving and the other for canceling the program.
When the user select an option button, a new form is opened and he can
fill
in some fields by using a context menu (standard answers).
When he is finished, tapping on the save button, the form is hidden and
the
user is returned to the main form, where an image is drawn that the form
is
filled in and done.
After that the form is disposed

After the second button he chooses the third option, but the form of
option
2 is show, by either tapping on save or cancel, the form is hidden/closed,
and the form that should have been displayed is opened.
When clicking on the save or cancel button, an exception error occurs, a
disposed exception.
The same thing happens when the second option is skipped and he goes first
to the third option and then the fourth.
Instead of showing the fourth, the third is shown and after closing it, a
disposed exception appears.

Basicly this is what is done:
. create instance of new form
. set the textboxes with text from dataset table
. show the form with showdialog
. dispose of the form when it returns

Nothing fancy, but with that strange error.
Who can help me with this??

Nov 22 '05 #2

P: n/a
EMW
Hi Cor,

I allready solved it.
I used the wrong events on the radiobuttons...

rg,
Eric
"Cor Ligthert" <no************@planet.nl> schreef in bericht
news:uo**************@TK2MSFTNGP09.phx.gbl...
Eric,

When you talk about forms it is forever to know if it is
a MDI child
a form opened with showdialog
a form openend with show,

Not knowing that gives in this kind of situations forever
misunderstandings.

Maybe you can let ut know that?

Cor

"EMW" <so*****@MikroZoft.com>
I have one form which is my main form and has 4 option buttons and two
regular buttons, one for saving and the other for canceling the program.
When the user select an option button, a new form is opened and he can
fill
in some fields by using a context menu (standard answers).
When he is finished, tapping on the save button, the form is hidden and
the
user is returned to the main form, where an image is drawn that the form
is
filled in and done.
After that the form is disposed

After the second button he chooses the third option, but the form of
option
2 is show, by either tapping on save or cancel, the form is
hidden/closed,
and the form that should have been displayed is opened.
When clicking on the save or cancel button, an exception error occurs, a
disposed exception.
The same thing happens when the second option is skipped and he goes
first
to the third option and then the fourth.
Instead of showing the fourth, the third is shown and after closing it, a
disposed exception appears.

Basicly this is what is done:
. create instance of new form
. set the textboxes with text from dataset table
. show the form with showdialog
. dispose of the form when it returns

Nothing fancy, but with that strange error.
Who can help me with this??


Nov 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.