There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer audio black screen boot bsod computer connection crash css dell display driver drivers email error ethernet excel explorer firefox firefox 3 game hard drive internet internet explorer itunes laptop lcd linux malware network networking nvidia outlook outlook 2003 outlook express partition printer problem router slow software sound trojan usb video virus vista windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
!Help on Visual Basic Project!


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Nameisnobody's Avatar
Computer Specs
Senior Member with 155 posts.
 
Join Date: Oct 2006
Location: A Tribe Called Quest
Experience: Novice
18-Oct-2006, 10:01 AM #1
!Help on Visual Basic Project!
I'm doing a Visual Basics project that deals with me creating a ficional distribution firm that sends several trucks full of manufactured goods to the United States each day.

The warehouse staff assembles the containers (mostly boxes) on the shipping dock and they'll use the program that I'll write as they load the trucks.

The information they need as they are loading is:

- information about each truck and each container
- whether or not they are overloading each truck.
Some problems that I'll help them overcome are:
- US customs want the volume and weight figures in Imperial measure, but some of the containers are
labeled in metric
- trucks that are overloaded, either by weight or volume (some trucks are “boxes” and some are flatbeds),lose their insurance coverage because they are deemed unsafe.

I have to create a Visual Basic program that contains text boxes, command buttons and labels. My assignment says that the Visual Basic program has to be contained in a single form which includes 7 command buttons of:
-Accept Truck Button
-Load Container Button
-Finish Truck Button
-Encode/Decode
-Print Button
-About (displays my name and date and such)
-Exit button

Can you guys offer any pointers or help to this newbie VB programmer.
wateva's Avatar
Senior Member with 781 posts.
 
Join Date: Apr 2006
Location: Canada
18-Oct-2006, 11:33 PM #2
What do you need help with? What are encode/decode and finish truck buttons supposed to do?
Nameisnobody's Avatar
Computer Specs
Senior Member with 155 posts.
 
Join Date: Oct 2006
Location: A Tribe Called Quest
Experience: Novice
19-Oct-2006, 04:33 PM #3
Hope this helps

1) Accept Truck Button
The user must push this button after entering the first (or next) truck’s id and weight and volume capacity.

2) Load Container Button
The user must push this button after entering a container’s weight and volume, and if appropriate, something into the metric indicator textbox.

3) Finish Truck Button
The user pushes this button when he will no longer add containers to the truck - either because it’s full or he has run out of containers.

4) Encode/Decode
(Set up this command button with the caption "Encode".)
If the button caption is "Encode"
- change the title label from Smith Shipping to Shipping htimS
- change the caption to "Decode"
If the button caption is "Decode"
- change the title label from Shipping htimS to Smith Shipping
- change the caption to "Encode"
This must be done using a loop and string manipulations.
Instead of Smith or htimS, use your surname.

5) Print Button
This button can be pressed any time. All the displayed information will be printed on the default printer. The command for printing the form is PrintForm.

6) About
Use a message box to display your name as programmer and the date you completed the program, when the About command button is clicked.

7) Exit Buttons
The Exit command button exits the program.
Nameisnobody's Avatar
Computer Specs
Senior Member with 155 posts.
 
Join Date: Oct 2006
Location: A Tribe Called Quest
Experience: Novice
19-Oct-2006, 04:34 PM #4
I'm a newb in this, so I think I may need help in everything
Especially how to start this this.
dquigley's Avatar
Computer Specs
Senior Member with 112 posts.
 
Join Date: Apr 2006
Location: Woodinville, WA
Experience: Advanced
19-Oct-2006, 10:43 PM #5
To start break down the assignment into steps:

1) Create the form - drag and drop the controls (buttons, textboxes, etc.)
2) Arrange them so they look good and are grouped logically
3) Change the IDs (Name) so they mean something (not just the text on the buttons)
Example: Button2 change to AcceptTruck
4) Then add code to the ButtonName_Click events - start with the easiest first like Exit or PrintForm

or

Add one Button/Feature to the form at a time and add the appropriate code to each Click event handler. Start with the easiest first so you get the hang of it. Like the Exit button.

Here is an example of the Click event handler for a button on Form1 named ExitProgram.

Code:
Public Class Form1

    Private Sub ExitProgram_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitProgram.Click
        Close()
    End Sub
End Class
Best,
Dan
wtfisgoingon's Avatar
Junior Member with 2 posts.
 
Join Date: Oct 2006
20-Oct-2006, 11:07 PM #6
i just googled "Visual basic truck assignment" hoping my prof copied the assignment from somewhere, are you enrolled at UTSC and is this for CSCA02?
Nameisnobody's Avatar
Computer Specs
Senior Member with 155 posts.
 
Join Date: Oct 2006
Location: A Tribe Called Quest
Experience: Novice
22-Oct-2006, 12:06 AM #7
lol, wow, of all the sites, of all the forums, you come into my thread...
so it seems you have found my post concerning that most dreaded assignment.
Truly, 'wtfisgoingon' is what I said when I saw that work.
I'm in the same class as you, and I am also looking for help on it.
I'm so lost, but I'll be studying the book and slides for now, since I don't have
Visual Basics at home.
mepatrick's Avatar
Computer Specs
Junior Member with 1 posts.
 
Join Date: Oct 2006
Experience: Computer Illiterate
22-Oct-2006, 05:29 PM #8
Seems like I've got the same problem. I don't even know how they want the layout to be. They say FOUR labels in total including the Title. How do I show ALL of these one just one label? ARGHHGHG. Anyone of you want to send me a print screen of your layout. Just want to see how it should look like.

The truck label should display in 5 lines, for the truck being loaded:
identification
maximum weight capacity (lb) with no decimals
maximum volume capacity (cu.ft.) with no decimals
% of weight capacity used so far – to one decimal point
% of volume capacity used so far – to one decimal point

I'll probably drop the course if the midterm is too hard.
wtfisgoingon's Avatar
Junior Member with 2 posts.
 
Join Date: Oct 2006
22-Oct-2006, 06:43 PM #9
ive been trying all day to get the stupid label to display all 5 things on different lines and i cant do it, i swear im going to snap, get me on msn and we can maybe work this **** out in a group, farj88@hotmail.com
dquigley's Avatar
Computer Specs
Senior Member with 112 posts.
 
Join Date: Apr 2006
Location: Woodinville, WA
Experience: Advanced
23-Oct-2006, 01:10 AM #10
The label control will start a new line when it encounters a carriage return character.

So...


Code:
Label1.Text = "This is line one" & Chr(13) & "This is line two" & Chr(13) & "This is line three"
Should give you three lines in the same lable.

Best,
Dan

Last edited by dquigley : 23-Oct-2006 10:30 AM.
Nameisnobody's Avatar
Computer Specs
Senior Member with 155 posts.
 
Join Date: Oct 2006
Location: A Tribe Called Quest
Experience: Novice
24-Oct-2006, 10:30 PM #11
Ah thanks anyway guys, even though half of the buttons didn't work properly, I managed to get some of the buttons to be working. I easy ones that is.
Hope the other guys on the thread succeded with their work, cause for me, I spent to much time on this. But whatever, I did enough.
Thanks again.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:09 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.