Results 1 to 10 of 10

Thread: [RESOLVED] Application Events: Startup

  1. #1

    Thread Starter
    Addicted Member HunterTTP's Avatar
    Join Date
    Jul 2012
    Posts
    146

    Resolved [RESOLVED] Application Events: Startup

    I am trying to run some code using "Startup" in "Application Events" while my SplashScreen is shown. But I can't even begin to get started because all of the tutorials describe things that I do not see. Here is what I see.

    Name:  Pic 1.png
Views: 3472
Size:  2.4 KB

    Name:  Pic 2.png
Views: 3413
Size:  3.9 KB

    Name:  Pic 3.png
Views: 3420
Size:  4.8 KB

    Name:  Pic 4.png
Views: 3413
Size:  3.5 KB



    Where do I even begin?

    Any help is greatly appreciated!



    Hunter

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Application Events: Startup

    You should see another couple of options under that General item and I'm not sure why you don't. If you create a new Windows Forms Application project and click that same button, do you still not see MyApplication and MyApplication Events items?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member HunterTTP's Avatar
    Join Date
    Jul 2012
    Posts
    146

    Re: Application Events: Startup

    Quote Originally Posted by jmcilhinney View Post
    You should see another couple of options under that General item and I'm not sure why you don't. If you create a new Windows Forms Application project and click that same button, do you still not see MyApplication and MyApplication Events items?
    I'm glad it's not just me being inept. When I open a new project and click the same thing, this is what I see.

    Name:  Pic 5.png
Views: 3292
Size:  31.0 KB


    Thoughts?

  4. #4
    Bad man! ident's Avatar
    Join Date
    Mar 2009
    Location
    Cambridge
    Posts
    5,401

    Re: Application Events: Startup

    Then click (MyApplication Events)
    My Github - 1d3nt

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Application Events: Startup

    So, just to be clear, you didn't have those last two options available in that drop-down list in your original project, right? If that's the case and it was a WinForms application project then I can only assume that something was corrupt and can't really say why.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    Addicted Member HunterTTP's Avatar
    Join Date
    Jul 2012
    Posts
    146

    Re: Application Events: Startup

    Yes. You are correct. But what can I do about it?

    Hunter

  7. #7
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Application Events: Startup

    Quote Originally Posted by HunterTTP View Post
    Yes. You are correct. But what can I do about it?

    Hunter
    No idea. That project is broken but exactly how and what to do to fix it may be very difficult to determine. I would suggest creating a new project and, if necessary, import project items from the old one.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  8. #8
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Application Events: Startup

    Is it possible the Application Framework option has been turned off? That's about the only suggestion I have. But then, I think when that is turned off, the Startup Form and Splash Screen options go away.


    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  9. #9
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Application Events: Startup

    Quote Originally Posted by techgnome View Post
    Is it possible the Application Framework option has been turned off? That's about the only suggestion I have. But then, I think when that is turned off, the Startup Form and Splash Screen options go away.


    -tg
    That was my thought too, so I tested and the View Application Events button is then disabled, along with various other items including the Splash Screen. Even if the button is clicked first and the ApplicationEvents.vb code file opened before disabling the Application Framework, those additional options were still available in the left-hand drop-down when I tested.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  10. #10

    Thread Starter
    Addicted Member HunterTTP's Avatar
    Join Date
    Jul 2012
    Posts
    146

    Re: [RESOLVED] Application Events: Startup

    To sum it up; I started a new project and copy/pasted my code. Everything is working much better now. But I still have to recreate each form, which sucks.

    I tried importing my forms with "add an existing item", but it isn't exactly as seamless as it sounds. Or it may be that something is seriously wrong with the first project.

    Either way, thanks for the help!


    Hunter

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width