martin2k

Home | Forums | VB6 | Games | Software | Directory | HTML | Wiki | Blog | Contact

Creating a Standard EXE Project


 

Home

Read and add posts to the Visual Basic 6.0 Forums

Download some of my programs and OCXs

Read the Tips here

The old style forum is still available here

Contact


 

Beginner Tip

This tutorial will tell you how to create a new Standard EXE project.  The Standard EXE project allows you to create an application, which can be compiled into a .exe file.  The .exe file then can be distributed using the Package & Deployment Wizard, which creates a setup program for your application.  There are few limits in the types of programs you can make with Visual Basic 6.0 - from a simple notepad program to a program, which controls stock for a whole supermarket for example.  Here is how to start a Standard EXE Project in Visual Basic 6.0:

1. Open Visual Basic 6.0 - it should be on your start menu if you have just installed it (Programs -> Microsoft Visual Basic 6.0 -> Microsoft Visual Basic 6.0)

2. The 'New Project' dialog box will appear:

The New Project dialog box
The New Project dialog box

3. Click on 'Standard EXE', then click Open

4. On the Project Explorer window (which should be in the top right of the screen), click on the top left icon, which is 'View Code':

The Project Explorer
The Project Explorer

5. The code window will appear:

The Code window
The Code window

6. You are now ready to start a new project.  Tip: double-click on the form and type in between the two lines ('Private Sub Form_Load' and 'End Sub').  This code will be executed as soon as the program starts.

Next > My First Program


blog comments powered by Disqus

Archived Comments

From: ameet kumar ladkan
Date: Saturday, November 7, 2009 at 17:34:02
Comments: i nothing say further,, but i say in just one line its best
 
From: pema wangchuk
Date: Friday, September 4, 2009 at 09:57:34
Comments: Do visual Basic programme is appiled in the filed of Business and engineering????? most of the students aare finding it difficult to understand Visual Basics?????
Micrsoft company need to published code book of Visual Basic
 
From: R P SINGH <pratap 229@gmail.com>
Date: Thursday, July 9, 2009 at 16:45:20
Comments: Its a surprise what a nice thing on internet. like positioned in class
 
From: me
Date: Tuesday, May 19, 2009 at 21:10:44
Comments: here is an idea make a file that can reproduce a mp3 file when it's started but without having it on computer (mp3 to be in exe file :D)
 
From: himanshu
Date: Saturday, November 15, 2008 at 14:18:01
Comments: it is very good
 
From: sadam
Date: Wednesday, September 3, 2008 at 07:16:44
Comments: hi my name is sadam iam student od sazbist larkana this site is good for helpe for vb exm i visit this veb and passing in vb papaers
 
From: asif
Date: Tuesday, July 15, 2008 at 12:10:52
Comments: Very Nice
 
From: anuj
Date: Sunday, March 2, 2008 at 07:55:07
Comments: thanks alot is very shot word for u
 
From: solomon amera
Date: Tuesday, January 22, 2008 at 08:43:51
Comments: it is a good web site for me to learn visual basic. thank you.
 
From: majid memon bhan
Date: Thursday, September 6, 2007 at 21:49:24
Comments: it is agood lesson
thanks for giving some knowledge of vb.
thank a lot.
ok
 
From: Palash
Date: Monday, June 4, 2007 at 16:10:31
Comments: Hi 
I have gone through the project its really helpful for me.Thanks I need more help to make autorun project through VB
 
From: om prakash
Date: Friday, December 15, 2006 at 05:13:26
Comments: Hi,
Its a good site for beginners.I was searching spme general stuff in VB and found here in simple and easily understandable.
Thanks a Tonn!!
 
From: gops
Date: Friday, September 1, 2006 at 14:16:55
Comments: if you want create one vb exe projet,first you will open vb then you click standard exe,one project window will be open then you create your project
 
From: arvind
Date: Wednesday, May 3, 2006 at 12:19:26
Comments: a good site for beginers in Visual Basic as well as for professionals to enhance their knowledge in Visual Basic.
 
From: lovergal
Date: Thursday, March 23, 2006 at 10:03:34
Comments: hi there,
    i've just learnt the basics of VB 6.0 and i've got loads of help from this site. i must say thanks for that,without this site i wonder how i would do my mini project. thx 4 all :)
 
From: J.W
Date: Tuesday, May 24, 2005 at 12:03:31
Comments: thank you very much for your beginner tutorials, they helped me loads when i was still on my VB6 'training wheels' A+ site
 
From: Stalker
Date: Monday, January 3, 2005 at 23:44:30
Comments: hay whuddup yall not to much here juss thought i would drop in an say good site i have beena programer for 5 years an i would have to say that there is alot of good stuff on this site for helping people out keep up the good work and if anybody nees help or anything just let me know ...Peace Stalker
 
From: Pete A Clark
Date: Saturday, September 18, 2004 at 09:36:20
Comments: Hi I am a pro tutor in I.T, Lit & Num & other life skills & Netwk Administrator "I really need a pay rise":-) Just to say,Excellent site & thanks for sharing your Knowledge
                   kind regards
                      Peebs
 
From: sofonias
Date: Friday, March 19, 2004 at 09:53:48
Comments: thnkyou for your helping vb6
 
From: md shariq
Date: Thursday, February 12, 2004 at 14:17:36
Comments: plz help me to develope my knowledge in vb.

i download your project and then when i tryed to open then the message appear
"component 'ALLENOCX.OCX'or one of its dependencies not correctly registred: a file is missing or invalid.

help me also to develope my own porject in vb 
 
my porject title is 
"contract management system"


thats all

by

md shariq

 
Reply: The 'OCXs Used' column in the 'My Programs' table lists what OCX files the program uses.  E.g. the Image Tile Viewer program requires files 'A' and 'D', which correspond to Allen OCX and Common Controls in the 'OCX and Runtime Files' table.
 
From: M Savage
Date: Wednesday, February 4, 2004 at 17:47:59
Comments: Hello,
I have created a vb6 application some time ago, but unfortunately I have deleted the source code by accident. Can I extract it from the .exe file?
 
Reply: Unfortunately, you cannot extract source code from a compiled .exe file (which is called decompiling).  See these posts from my old Visual Basic 6.0 Forum for the reasons why:

decompiler

Code from Exe. file

 
From: ujwal
Date: Wednesday, February 4, 2004 at 12:20:54
Comments: iam doing mca from birla institute of tecnology i have completed my vb6 please send me some project on that
thanks
 
From: Paul
Date: Thursday, January 22, 2004 at 02:28:52
Comments: When I go to file I see that Make Project1.exe is disabled.  How do I make a .exe
 
Reply: You can only compile your projects into .exe files if you have the Professional or Enterprise version of Visual Basic 6.0.
 
From: Mohamed Ahmed
Date: Thursday, January 15, 2004 at 17:32:31
Comments: Hello;sirs
Please send me the source codes for some project , and details description
Thank you in advance
 
From: NAVYA
Date: Sunday, January 11, 2004 at 04:41:00
Comments: help me to study  VB 6
 
From: Ashwin Murali.T
Date: Wednesday, December 24, 2003 at 17:49:39
Comments: Hello sir/madam,
I've got to do an application based project in VB6.0.
Please help me out with the ideas.

I'll be eagerly awaiting ur reply.

Thanks in advance

 
From: khalid
Date: Wednesday, December 17, 2003 at 08:17:36
Comments: plz give suitable idea i ready 2 work on project
 
From: akshada
Date: Friday, November 28, 2003 at 12:34:56
Comments: i just wanna say u r doing a superb job for the beginnersthank u
 
From: sangeeta
Date: Thursday, November 27, 2003 at 14:42:33
Comments: hello sir
      i am the student of diploma in computer management.I have completed my VB6.0. Now I want to work on some project and please send me one good if u can. 
I will be very thank ful to u
           from
             sangeeta

bye bye

 
From: Dhiraj Kumar Jain
Date: Monday, November 17, 2003 at 12:11:33
Comments: I want some detailed infromation about Visual Basic for making project
 
From: Radha
Date: Sunday, October 26, 2003 at 15:28:08
Comments: i want know the about visual basics6.0 for fully notes and practically on online please send details
 
From: Nimen
Date: Thursday, October 2, 2003 at 19:55:25
Comments: Hello,
I am a new user of Visual Basic 6.0 and I am much in terested in it. Can you please give me some information about how to learn it and all the basic steps for programming. I will be loking forward to your mail.
Thanks.
 
From: pervaiz amir mughal
Date: Thursday, October 2, 2003 at 11:19:38
Comments: I have completed my VB6.0. Now I want to work on some project and please send me one good if u can. 

I will be very thank ful to u 

bye bye

 
From: vuli
Date: Tuesday, September 16, 2003 at 11:54:00
Comments: Hi there
I have a project due on the 7th of October but I don't have any idea on how to design a program on VB 6.0. I'm willing to learn and will accept any help.
Thanks!! 
Vuli
 
From: Wai <Yi334@streamyx>
Date: Wednesday, August 27, 2003 at 10:35:42
Comments: Dear,Mr Nirmal,Can you help me to guide me to how my visual basic in step by step?
 
From: Patrick Poole
Date: Wednesday, August 6, 2003 at 19:57:09
Comments: I have recently purchased VB6 Professional, having used the deluxe learning edition up until then.  I compiled in the Professional edition an application that was created, for the most part, in the student edition.  

When I attempt to share the application with someone who is running Windows 95, 98 and even NT, a missing .dll error comes up and prevents the application from being run completely.

What to do?

 
Reply: In order to be able to run a compiled program on a computer, which doesn't have Visual Basic 6.0 installed, you will need to install the Visual Basic 6.0 Runtime files (1.01 MB) first to get your program to work.
 
From: nogen
Date: Wednesday, August 6, 2003 at 06:53:11
Comments: Respected Sir/Madam
I want to learn Visual Basic 6.0.I am very new in this VB6.0.i have some programming skil in VbScript, But i dont know abt V B.6.0.Please help me , how should i start.
Thanks
Nogen
 
From: vijay kumar
Date: Thursday, July 17, 2003 at 04:32:04
Comments: i want know the about visual basics6.0 for fully notes and practically on online please send details
 
From: Murad Abbas
Date: Monday, July 14, 2003 at 15:55:26
Comments: Dear sir/Madam 

  I have completed my VB6.0. Now I want to work on some project and please send me one good if u can. 

I will be very thank ful to u 

bye bye

 
From: AMR
Date: Thursday, July 10, 2003 at 15:00:37
Comments: Respected Sir/Mam, 
Hi. I'll use VB for my school project and I have a lot of questions and problems.If you have examples of programs on visual basic of some organizatio, so contact me please and show it to me.It will really help me in my studies.
Thank you. 
please send me a specification of any project immediately.I will be keenly waiting for your reply.
pempo26@hotmail.com
 
From: s.johnson samuel
Date: Friday, May 16, 2003 at 08:34:42
Comments: Respected Sir/Mam,

Recently I've completed my vb 6.0 .So please send me a specification of any project immediately.I will be keenly waiting for your reply.

 
From: Nastya
Date: Monday, March 10, 2003 at 10:46:53
Comments: Hi. I use VB for my school project and I have a lot of questions and problems.If you have examples of programs on visual basic of some organizatio, so contact me please and show it to me.It will really help me in my studies.
Thank you.
 
From: nirmal
Date: Tuesday, November 26, 2002 at 06:07:39
Comments: please give some idea to make vb project.i am study b.tech it coure

Martin Allen 1999 - 2012.  Last updated Tuesday 10 January 2012 08:45:17 PM -0000.