Mulitble forms in VB

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

    #1

    Mulitble forms in VB

    HI. I am currently converting a VBA application to VB .Net 3003 (Com
    addin).
    I have several foms which I call from the main module.
    In VBA code execution stops until the form is closed but in my VB .Net
    application the code in the main application continues executing even
    if a form is open.

    I have the following code:

    Dim frmsearchdeb As New frmSearchDebito r
    Dim frmtest As New frmDokumentskab eloner

    frmsearchdeb.Sh ow()
    MsgBox("venter ikke på dialog lukning")
    frmtest.Show()

    I dont want frmtest to be shown before the user exits the frmsearchdeb
    form.
    I dont get it why this doesn't work in VB???

    All help appriciated. Kind regards Karsten.

  • Armin Zingler

    #2
    Re: Mulitble forms in VB

    "Karsten_Markma nn" <kma@lro.dkschr ieb
    HI. I am currently converting a VBA application to VB .Net 3003 (Com
    addin).
    I have several foms which I call from the main module.
    In VBA code execution stops until the form is closed but in my VB
    .Net application the code in the main application continues
    executing even if a form is open.
    >
    I have the following code:
    >
    Dim frmsearchdeb As New frmSearchDebito r
    Dim frmtest As New frmDokumentskab eloner
    >
    frmsearchdeb.Sh ow()
    MsgBox("venter ikke på dialog lukning")
    frmtest.Show()
    >
    I dont want frmtest to be shown before the user exits the
    frmsearchdeb form.
    I dont get it why this doesn't work in VB???
    >
    All help appriciated. Kind regards Karsten.
    >
    Show shows the Form modeless. Use ShowDialog to show it modally.


    Armin

    Comment

    • Karsten_Markmann

      #3
      Re: Mulitble forms in VB

      On 21 Feb., 09:39, "Armin Zingler" <az.nos...@free net.dewrote:
      "Karsten_Markma nn" <k...@lro.dksch rieb
      >
      >
      >
      >
      >
      HI. I am currently converting a VBA application to VB .Net 3003 (Com
      addin).
      I have several foms which I call from the main module.
      In VBA code execution stops until the form is closed but in my VB
      .Net application the code in the main application continues
      executing even if a form is open.
      >
      I have the following code:
      >
      Dim frmsearchdeb As New frmSearchDebito r
      Dim frmtest As New frmDokumentskab eloner
      >
      frmsearchdeb.Sh ow()
      MsgBox("venter ikke på dialog lukning")
      frmtest.Show()
      >
      I dont want frmtest to be shown before the user exits the
      frmsearchdeb form.
      I dont get it why this doesn't work in VB???
      >
      All help appriciated. Kind regards Karsten.
      >
      Show shows the Form modeless. Use ShowDialog to show it modally.
      >
      Armin- Skjul tekst i anførselstegn -
      >
      - Vis tekst i anførselstegn -
      Thanks Armin.
      I had complete starred me blind into this issue. :-)
      thanks again.

      Comment

      Working...