It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Partner Sites
Board index Programming Visual Basic Forum

I need your help with creating/coding an application in VB 6

Moderator: dafunkymunky

I need your help with creating/coding an application in VB 6

Postby EntangledDesi on Mon Oct 05, 2009 7:15 pm

Programming is something that will always go over my head. I have a general idea, but need some help with the coding.

I need to create an application that will display the square and square root of a number.

*I mostly need help with how to write the code for calculating the square and square root of a number

The application must use two forms.
The first one should prompt the sudent for their name and should resemble a standard dialog box.
The name must also be displayed on the main form when the main form is run.
The main form should include a Square/Square Root button, a Print button, and an Exit button.
Use the InputBox function in the Square/Square Root button to prompt the user for the number.
The application should also display both the square and square root of the number.
The print button should send the focus to the Square/Square Root button.

Any help would be greatly appreciated. :]
Last edited by EntangledDesi on Mon Oct 05, 2009 10:38 pm, edited 1 time in total.
EntangledDesi
 
Posts: 5
Joined: Mon Oct 05, 2009 6:56 pm

Re: I need your help with creating/coding an application in VB 6

Postby EntangledDesi on Mon Oct 05, 2009 8:13 pm

Can someone tell me if I have the right idea with the TOE chart?
http://docs.google.com/Doc?docid=0AX23a ... JmcA&hl=en
EntangledDesi
 
Posts: 5
Joined: Mon Oct 05, 2009 6:56 pm

Re: I need your help with creating/coding an application in VB 6

Postby bytelogik on Wed Oct 07, 2009 7:43 am

Paste this wherever you want in load event, in click event....

dim a as double
dim RetSquare as double
dim RetSquareRoot as double

a= 25 'change this to a=val(txtNumber) if you want dynamic input.
RetSquare=a ^ 2
RetSquareRoot =sqr(a)

MsgBox RetSquare
MsgBox RetSquareRoot

Rest of, you can carry on your own.
bytelogik
 
Posts: 7
Joined: Tue Oct 06, 2009 8:24 pm

Re: I need your help with creating/coding an application in VB 6

Postby EntangledDesi on Wed Oct 07, 2009 2:45 pm

Thank you
EntangledDesi
 
Posts: 5
Joined: Mon Oct 05, 2009 6:56 pm


Return to Visual Basic Forum

Who is online

Users browsing this forum: No registered users and 0 guests