Application start-up events without start-up form

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

    Application start-up events without start-up form

    Hi

    My app needs to use the MyApplication_S tartup and
    MyApplication_S tartupNextInsta nce events but do not need the start-up form.
    How can I get rid of the start-up form as I can't select the Sub Main when
    application framework is enabled.?

    Thanks

    Regards


  • Tom Shelton

    #2
    Re: Application start-up events without start-up form

    On Apr 23, 6:10 pm, "John" <i...@nospam.in fovis.co.ukwrot e:
    Hi
    >
    My app needs to use the MyApplication_S tartup and
    MyApplication_S tartupNextInsta nce events but do not need the start-up form..
    How can I get rid of the start-up form as I can't select the Sub Main when
    application framework is enabled.?
    >
    Thanks
    >
    Regards
    You can't... You have to use a form as your startup object when you
    use the framework.

    --
    Tom Shelton

    Comment

    • Bill McCarthy

      #3
      Re: Application start-up events without start-up form

      What is it you are trying to do ?
      If you want to change the startup from at runtime you can do that in the
      Startup event by setting Me.MainForm to the appropriate form.



      "John" <info@nospam.in fovis.co.ukwrot e in message
      news:eVXen%23Zp IHA.1420@TK2MSF TNGP03.phx.gbl. ..
      Hi
      >
      My app needs to use the MyApplication_S tartup and
      MyApplication_S tartupNextInsta nce events but do not need the start-up
      form. How can I get rid of the start-up form as I can't select the Sub
      Main when application framework is enabled.?
      >
      Thanks
      >
      Regards
      >
      >

      Comment

      • John

        #4
        Re: Application start-up events without start-up form

        Hi

        I need the vb.net app to work in background (so to speak) as it will get an
        event by an external app periodically by it (vb.net app) being called with a
        parameter by the external app. I am using MyApplication_S tartup and
        MyApplication_S tartupNextInsta nce events to pick up that command line
        parameter but as I need to do this in background I do not need to show the
        form.

        Should I use an app type other than Winform to accomplish this?

        Thanks

        Regards


        "Bill McCarthy" <Bill@N0SPAM.co mwrote in message
        news:448E61E9-85CA-43F0-8867-14B344AA5BBB@mi crosoft.com...
        What is it you are trying to do ?
        If you want to change the startup from at runtime you can do that in the
        Startup event by setting Me.MainForm to the appropriate form.
        >
        >
        >
        "John" <info@nospam.in fovis.co.ukwrot e in message
        news:eVXen%23Zp IHA.1420@TK2MSF TNGP03.phx.gbl. ..
        >Hi
        >>
        >My app needs to use the MyApplication_S tartup and
        >MyApplication_ StartupNextInst ance events but do not need the start-up
        >form. How can I get rid of the start-up form as I can't select the Sub
        >Main when application framework is enabled.?
        >>
        >Thanks
        >>
        >Regards
        >>
        >>
        >

        Comment

        • Bill McCarthy

          #5
          Re: Application start-up events without start-up form

          Yeh, I'd say just use a Sub Main. Uncheck the "Enable Application Framework"
          box, then select a Sub Main in the startup object drop down.



          "John" <info@nospam.in fovis.co.ukwrot e in message
          news:eOYexWgpIH A.3860@TK2MSFTN GP02.phx.gbl...
          Hi
          >
          I need the vb.net app to work in background (so to speak) as it will get
          an event by an external app periodically by it (vb.net app) being called
          with a parameter by the external app. I am using MyApplication_S tartup and
          MyApplication_S tartupNextInsta nce events to pick up that command line
          parameter but as I need to do this in background I do not need to show the
          form.
          >
          Should I use an app type other than Winform to accomplish this?
          >
          Thanks
          >
          Regards
          >
          >
          "Bill McCarthy" <Bill@N0SPAM.co mwrote in message
          news:448E61E9-85CA-43F0-8867-14B344AA5BBB@mi crosoft.com...
          >What is it you are trying to do ?
          >If you want to change the startup from at runtime you can do that in the
          >Startup event by setting Me.MainForm to the appropriate form.
          >>
          >>
          >>
          >"John" <info@nospam.in fovis.co.ukwrot e in message
          >news:eVXen%23Z pIHA.1420@TK2MS FTNGP03.phx.gbl ...
          >>Hi
          >>>
          >>My app needs to use the MyApplication_S tartup and
          >>MyApplication _StartupNextIns tance events but do not need the start-up
          >>form. How can I get rid of the start-up form as I can't select the Sub
          >>Main when application framework is enabled.?
          >>>
          >>Thanks
          >>>
          >>Regards
          >>>
          >>>
          >>
          >
          >

          Comment

          Working...