VB Trying To Make Sense Of Homework?

Feb 16, 2011

So my teacher gave us this assignment that I'm having trouble understanding why she wants us to write outside of the button Private Sub.1. Write the code for the Calculate Total and Grand Total button a. Declare a variable to accumulate the individual totals outside the sub procedures b. Calculate the total by multiplying the selected number of atendees by the selected cost, and display this total in the label next to Total c. Calculate the grand total by adding the total calculated in step 3.b to the grand total variable. Display the grand total next to Grand Total I'm don't understand why she says 1a. I feel like you can just write all the variables in the same Sub on the calculate button.

View 8 Replies


ADVERTISEMENT

When Does It Make Sense To Use F# Over C#

Jul 14, 2009

Does anyone have any practical examples where F# would be a better choice than C# or VB.NET? Please can you demonstrate using source code?

View 8 Replies

Make An App That Can Be Automated In The Same Sense That Get MS Word?

Mar 10, 2012

Firstly please see this thread.>>[URL]..In the code in that thread the code calls on MS Word to check its dictionary and then report back TRUE / FALSE if the word is found or not.

Rewriting the code slightly for a Windows Form application with one Button on the Form I now have.>>

Option Strict On
Option Explicit On
Option Infer Off

[Code]..

View 2 Replies

Make Sense To Use A Backgroundwoker That Inlcude A Parallel Process?

Oct 25, 2010

does it make sense to use a backgroundwoker that includes a parallel process that starts many

processes if during this the full application is frozen by the parallel stuff itself?

View 1 Replies

HtmlAgilityPack - Getting Error When Looping Through Nodes Doesn't Make Sense

Dec 31, 2011

I'm trying to get all nodes below but I am getting an error message of: Overload resolution failed because no accessible 'GetAttributeValue' accepts this number of arguments.

[Code]...

View 1 Replies

Warnings In Project Make No Sense - The Variables 'uxRecentlyOpened' Is Either Undeclared Or Was Never Assigned?

Aug 14, 2009

I have a form called SearchScreen and on that screen is a custom control of class recentlyOpenedCompany called 'uxRecentlyOpened' within the form. I have made no changes at all to the SearchScreen form. I have added an aboutdialog to the project and deleted an about form. Thats itand

View 1 Replies

Programs Without Sense But Stuck On New Program?

Apr 7, 2010

Im new to programming and I started by grabbing some code here and there from various internet sites. I made some little programs without sense but Im stuck on my new program.

[Code]...

View 6 Replies

Homework - For Loop Won't Execute

Sep 13, 2011

EDIT: Solved (see comments) I have a For loop inside a sub, and right below it I have a MessageBox function. Everything compiles correctly, however for some reason, if the loop executes and exits successfully, anything outside and below the For doesn't get executed.

[Code]...

it displays only 10 items in the ListBox afterwards. I've searched everywhere, but I did not find anything related to such an issue. I'm kinda puzzled, anyone got a clue of what's going on? EDIT: Forgot to specify, the sub is actually a TextBox.TextChanged event

View 1 Replies

Cell Phone Package Homework?

Oct 26, 2009

Have to develop an application that will let me choose between cell phone plans, individual and family plans i have the forms and all choices done,. new forms open and old ones hide to keep it clean. i think i got all the variables declared, and got no debugging errors, but when i select the options, it always gives me the following:

1. adds one more phone than selected

2. only shows phone subtotal, tax and total

3. prices for options and monthly fees never show

Here is my code for all 3 forms

Public Class frmMain
Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
End
End Sub

[code]....

View 9 Replies

Homework - .net Converting Week To Date?

Jun 29, 2011

I am developing an ASPX VB.NET file. My assignment is to convert an integer representing week of the year into that end date. For example, if user selects Week 4 for 2011, I want to get date = 1/22/11. How do I do this in VB.NET?

View 2 Replies

Homework - Change Keyboard Language By API?

Apr 30, 2012

I'm supposed to change the keyboard language to Farsi(Persian) by using API functions while the program is running( It's a plain form with a text box). I'm already late for the due date.

View 1 Replies

Homework - Clearing A Dropdown Menu In .Net?

Mar 31, 2012

I have two drop down boxes in my program. When you select an item from the first drop down, it populates select-able items in the second. When I select something in the second and then change the selection in the first one, the values remain in the second. How do I "reset" the second drop down when the first is changed?

View 1 Replies

Homework - Fibonacci Sequence In .net Using Loop?

Apr 3, 2011

displaying the first 10 Fibonacci numbers. My code displays the following result: 1, 2, 3, 5, 8, 13, 21, 34, 55 and I need it to also display the first two Febonacci numbers (0 and 1). How would I do that?

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim a As Integer = 0

[code]....

View 3 Replies

Homework - Net Abstract Class Understanding?

Dec 28, 2011

If i have a class called A and a class called B, if B inherits A that means A is the super class and B is the subclass. I have been asked to describe why class A is not an abstract class but as i see it class A is an abstract class A, as it has been created for Class B to use in the future, is it something to do with Class B not being able to access the fields in Class A as although they are private by default?

[Code]...

View 3 Replies

Homework - Test Fires The Message Box Twice?

Sep 20, 2011

I am trying to unit test for data being input into a textbox (txtPrice). If it is not numeric, it throws a messagebox stating that the input must be numeric. However, when I unit test, I can't figure out why my test fires the message box twice.THis is my (simple) unit test:

Public Sub txtBoxes_LeaveTest()
Dim target As frmEstimate_Accessor = New frmEstimate_Accessor ' TODO: Initialize to an appropriate value
Dim sender As Object = Nothing ' TODO: Initialize to an appropriate value[code].....

My understanding is that for unit testing, you declare the sender, and (in this case) set the sender to some value that will trip the message box. 112L should do this on the leave event. I then write my expected, which in this case is 112L, fire the event, and then get the actual out of the text box. I then Assert.AreEqual to ensure the expected and actual are the same.

View 2 Replies

Homework - Testing A Trace Table?

Dec 29, 2011

Working through trace tables and wanted to check to see if my results where correct, I have designed the following code to check each stage of the loop, but the code keeps throwing up an error about casting when i try to run it. I can see when the error comes back that the writeline is holding info but what have i done wrong.

Module Module1
Sub Main()
Dim aWord As String

[Code]....

View 1 Replies

Homework - .net Network Graph Code/algorithm?

Dec 8, 2010

For a school project we need to visualise a computer network graph. The number of computers with specific properties are read from an XML file, and then a graph should be created. Ad random computers are added and removed.Is there any open source project or algorithm that could help us visualising this in VB.net? Or would you suggest us to switch to java.

Update: We eventually switched java and used the Jung libraries because this was easier for us to understand and implement.

View 1 Replies

Homework - Declare A Two Dimensional Array With 5 Rows And 3 Columns

Nov 2, 2010

I've been taking a class on it this semester and am starting to get very confused and behind. I've been pretty stuck on my hwk assignment for this week and was wondering if anyone could possibly hint at what I'm doing wrong or if I'm just completely way off. The whole rows and columns in arrays seems to be throwing me off now. Also, sorry if this is not the right place to post something like this I was not sure which section this fit under.

[Code]...

View 2 Replies

Homework - Write A Program To Print Only Even Numbers Between 6 And 16 Using Events

May 22, 2011

I was given an assignment to "write a program to print only even numbers between 6 and 16 using events", but I don't even know where to begin. The main thing I am having difficulty with understanding in this assignment is how I am supposed to specify that it only print even numbers in the given range of numbers.

Am I going to have to do a Mod2 code for each individual number and have it exclude any with the result of 1? Or is there another piece of code specifically designed for such an occassion? Perhaps there is some type of equation I can have the program read in terms of a variable, which holds the values of 6, 8, 10, 12, 14, and 16? I am just genuinely confused on how this is supposed to be programmed.

View 3 Replies

Programming Challenge (not Homework) Editing Many Files Quickly

Dec 3, 2009

I have 202 .html files and at the beginning of each file, I need to add a chunk of php code. I could make this myself, but to be honest, it would take me forever and I might as well just manually edit them lol. All the .html files are in one folder.[code] one other thing that would be VERY cool, is if it could add the files that are not edited to a listbox or an outputted text file.

View 12 Replies

Homework - .Net - Inheritance - Parent And Child Both Have ToString Methods? Can Both Be Accessed / Used?

May 28, 2012

I am learning inheritance in VB.Net. A homework assignment asks me to write a base class with a name (String) property and a ToString method that displays the name. It also asks me to create some child classes of the base class and also implement a ToString method in those child classes. Is it possible for me to call the ToString method from both the child and base class?

[Code]...

Again, I am wondering if there is a way to call the ToString() method within the child class and then base class to generate output something like: "Hello VB.Net This is the name"

View 1 Replies

Homework - Does Not Retrieve The Data Error "InvalidCastException"

Jul 14, 2010

I am puzzled by why it does not retrieve the data and keep saying i have a error "InvalidCastException", i am currently doing these in compact framework and is totally new to it, i searched around looking for a way to get data into a listview base on what little i know about java . these are my creation of table and inserting during formload

[Code]...

View 1 Replies

Cannot Find A Way To Make A Program That Write Make A Shortcut In Start Menu For All Users

Jun 6, 2009

I cannot find a way to make a program that I write make a shortcut in the start menu for all users.My final goal is to make an MSI and deploy it in group policy to all users on a computers OU. Is this possible?

View 5 Replies

Make Code Which Can Make Copying A File In A Particular Drive Invalid/access Denied?

Aug 29, 2009

can we make code which can make copying a file in a particular drive invalid/access denied?

View 3 Replies

Make Loop To Make Certain Thing Happen About 10-30 Times Without Taking In Too Much Memory / CPU?

Oct 16, 2011

A few years ago I have been busy creating this application but it didn't succeed, now Im coming back to it and similar problems occur. Basically I use SetPixel on a given window to draw a line, work fine, but the line goes away as the window redraws itself.The problem: I have been putting timers and threads on it to make sure the line is being drawn. Is there any way to make a loop to make a certain thing happen about 10-30 times without taking in too much memory/CPU?

View 7 Replies

Make Trig/pre-calc Class A Little Easier And Make A 'app' That Solves Triangles?

Jan 13, 2010

Public Class form1
Private Sub btnAnswer_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAnswer.Click[code]........

how can i make vb realize that the side that is opposite of the given angle, has to be less than the other sides. Also im not sure what Acamar meant by If txtAngleA.Text <> "" AndAlso txtAngleB.Text <> "" AndAlso txtSideA.Text <> "" Then 'two angles and a side Because im not sure what <> does.

View 1 Replies

VS 2008 Make Button Open A Program And Make It Windows Size?

Aug 23, 2009

How do i make my button open a program and make it windows size?

View 6 Replies

VS 2008 Make Some Kind Of Loop Inside A Timer To Make Them Change?

Dec 14, 2010

Basically I have 10 .png images.They contain a walk cycle I need to make some kind of loop inside a timer to make them change.

View 2 Replies

Make A Certian Function That Will Fade Out [make A Black Screen That Fades Out For 2 Seconds] Then Come Back?

Oct 12, 2010

Can I make a certian function that will fade out [make a black screen that fades out for 2 seconds], then come back? Is that possible? ON A FORM.

View 3 Replies

Make Make Syntax Highlighting And Keyboard Behavior Identical For C# In Visual Studio 2008?

Aug 25, 2010

Types have their own color (cyan by default).Enter completes the auto-complete suggestion.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved