Form problem..

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • EMW

    Form problem..

    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??


  • Cor Ligthert

    #2
    Re: Form problem..

    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 misunderstandin gs.

    Maybe you can let ut know that?

    Cor

    "EMW" <someone@MikroZ oft.com>
    [color=blue]
    >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??
    >
    >[/color]


    Comment

    • EMW

      #3
      Re: Form problem..

      Hi Cor,

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

      rg,
      Eric


      "Cor Ligthert" <notmyfirstname @planet.nl> schreef in bericht
      news:uo8TPo88EH A.3012@TK2MSFTN GP09.phx.gbl...[color=blue]
      > 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
      > misunderstandin gs.
      >
      > Maybe you can let ut know that?
      >
      > Cor
      >
      > "EMW" <someone@MikroZ oft.com>
      >[color=green]
      >>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??
      >>
      >>[/color]
      >
      >[/color]


      Comment

      Working...