opening my program in run mode

Posted on 2006-04-02
Last Modified: 2010-05-01

This probably has a very simply solution but here goes. I have a program that is fully working.

I now need it to run automatically when the file is opened. For example, at present the file is still opening in design view allowing all the code to be shown.

How do I make it so that it runs automatically? rather than me having to click the RUN button after it has opened

Please Help!!!

Question by:Jaymesh
    LVL 12

    Accepted Solution

    Go to the Project window in the IDE and rt click on the project name, click on Set as Startup, rt click on project name again, click on project name properties, and on the general tab select the startup object from the dropdown list.

    LVL 18

    Expert Comment

    I think you asking on how to make an Exe for the program. To do that go to file menu and you will see "Make Project1 exe..." menu there. Press that and save the exe of the file in your specified folder. Now you can run the exe and VB IDE will not open.
    LVL 17

    Expert Comment

    You can use Package and deployment wizard to create a Package setup for you.... this can be found under Add Ins->Package and Deployment Wizard... if Package and Deployment Wizard option does not exist there .. then you need to go to Add Ins->Add In Manager then double click Package and Deployment Wizard shown in the list... and press OK,

    then you will see the Package and Deployment Wizard option ..

    it is a simple and straight forward wizard which collects all the dependencies of your project and compile them into a package and creates setup files... like user just have to click setup.exe to install your program...

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
    Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now