Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 8th, 2008, 08:54 PM
Registered User
 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default needs help on first form.

i am new to visual basic 6, the enterprise edition. I designed my form and add a toolbar and i noticed all the coding isn`t there, i tried looking in msdn for help and couldn`t find the coding for the FILE NEW button. Where can i find this at or what is the code for it.

              PLEASE HELP!!!!!
       email is [email protected] and my name jeff.
 
Old May 8th, 2008, 09:05 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Hi there.. you can buy some books, altough for VB6 I think would be better google..

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old May 9th, 2008, 11:59 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

There are Visual Basic tutorials on the web.
Poking around in the Help files can be helpful. You'll see descriptions of whatever help entry you're looking at, as well as samples of it being used, which will show you ways to tell VB what you want it to do (which is what programming is).

Just to get you sort of started:
Vb is an event-driven environment, in large part. If you create a form, and put a button on it, here's what will happen:

When you run the program, the form will show on the screen. It will be largely idle.
When you click the button, and event is raised, called the Click event. (The button also has events like MouseOver, MouseOut, MouseDown, MouseUp, MouseMove, DoubleClick, and so on.)
In the code you have written for the form, you will have added actions to take place within the Click event. That event being raised will cause the Click event code to run.
So let's say the button is named cmdStart ("cmd" for "Command" button.)
If you double-click the button during the design phase, the following will be added to the code belonging to the form:
Code:
Private Sub cmdStart_Click()

End Sub
The code between the first line and the last line will be run by clicking the button.
Let's say you create an Integer, set it to 10, then use the message box to display that. You would create:
Code:
Private Sub cmdStart_Click()

    Dim i As Integer

    i = 10

    MsgBox "The Integer, i, = " & i

End Sub
That ampersand will add the characters 1 and 0 to the text between the quotes, and that joined set of characters will be displayed on the screen on top of everything els, within a box with an OK button on it. That joining of characters is called "concatenating" (kahn KAT ten aiting). Everything between the quotes is called a literal string.
 
Old August 2nd, 2008, 12:36 PM
Registered User
 
Join Date: Aug 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ilasabba
Default

Follow this URL. As you said you are new to Visual Basic, this website is going to be a definite guide for you.

http://visualbasic.freetutes.com

 
Old August 4th, 2008, 10:24 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

ilasabba,

So far this morning, I have read 3 topics. As it turns out, you have previously posted a reply in each of them. Each of your posts consists of refering the person to FreeTutes.com.

Are you making a per-click commission from that site?

(It is more common—and really, more helpful—to answer the actual sticking point the poster came here about than to point them to a tutorial site... Not required, but certainly more helpful. Remember when we would ask mom how to spell a word, and she would say, “look it up in the dictionary!”?)





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set a form as startup form in vb.net 2.0 mallikalapati .NET Framework 2.0 1 February 21st, 2008 09:19 AM
Close all MdiChield form from open one form/Button salman .NET Framework 2.0 6 December 10th, 2007 03:21 AM
Firefox Error when Form Floated / Form locks socoolbrewster CSS Cascading Style Sheets 5 October 6th, 2007 09:59 PM
How to refresh owner form on closing of child form akumarp2p C# 2005 0 December 22nd, 2006 10:27 AM
parent form from child form - urgent plz netfresher C# 1 November 8th, 2006 06:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.