Dropping The Lowest Grade?

Sep 22, 2009

I am in a visual basics 2008 class for my MIS degree. This is the beginners class. We were instructed to build a program that calculates a score average. However, we get extra credit if we figure out how to drop the lowest test score. I do not know how to do this. The teacher won't help with the extra credit. I will post my code.

[Code]...

View 10 Replies


ADVERTISEMENT

.Net Packet Dropping (firewall)?

Feb 22, 2009

I am trying to intercept connections on port 2302 that is being used by a game. I was think about using something along the lines of

#Region " Imports "
Imports System
Imports System.IO
Imports System.Windows.Forms

[code]....

View 2 Replies

Draggin And Dropping A Picture Box?

Oct 15, 2009

I'm running this on Microsoft Visual Basic 2008 I want to make a program with 2 forms, one with buttons, the other that will just hold picture boxes, which are created when those buttons are clicked. Once those picture boxes are placed on the second form, I want to be able to drag and drop them to move them anywhere on that second form.

I have it "working" as of right now, but it's really glitchy. Almost as if it can't keep up with my mouse movement. But I'm not moving THAT fast so I can only assume that something is wrong.The buttons work so I won't post that code here but the following code is for the second form and what I'm using to control the picture boxes.

Public Class Form2
Private counter As Integer
Private boxCounter As Integer
Private list As New ArrayList

[code]....

View 5 Replies

VS 2008 Dragging And Dropping?

Jun 22, 2009

Right now I have checkboxes on my form, and depending on what check box I check, the value of it gets put into a text box. So if I check "Right Eye", the texb ox below it gets "Right Eye" placed there.

I would like to do away with the check boxes and instead have a new form pop up with a list of words that gets populated from a table. Is it possible to be able to drag and drop these words into a text box? I guess I could use a List Box control for that but I'm unsure how to implement drag and drop. Maybe be able to multi-select words and then drag them all to a certain text box.

I'd like to have give the user the option of adding and deleting words from that form as they see fit, so could I just let VS do that for me by dragging the datasource onto the form and have it create a bindingnavigator or should I do it myself?

View 9 Replies

Why Is Regex Dropping '-' When Getting Matches

Jan 7, 2010

Trying to parse this and return the following 3 items: [code] Using this regex expression below I get the matches, but drop the leading "-" at the front of each grouping. I get the "-" in the middle of the group though. [code]

View 2 Replies

Chat Room Dropping Connection?

Jul 30, 2009

I have created a instant messenger program that works great except for 1 of our computers that is in our vpn but is an offsite location. The computer is able to connect but loses its connection after a few minutes.

View 1 Replies

DB/Reporting :: Creating New Records By Draging And Dropping?

Jun 2, 2008

An order can have many OrderDetails, and a Product can be on many different orders. The OrderDetail table just has the OrderID and productID, so there is essentially a many-to-many between order and product).I have a form for the user to enter a new order. I want to have an unbound box that contains the names of all the products, and to be able to drag these names into a box under the order, to add a new OrderDetail record using the productID of the dragged order along with our orderID.

View 1 Replies

Socket.Receive Is Dropping The Last Byte Of Every Packet

Nov 11, 2010

I am having trouble with a socket client application written in vb.net using Visual Studio 2005. The client connects to a C language socket server that is running on OpenVMS. The problem that I have is that when the server sends a packet, the client does not receive the last byte (of every packet!). I can dump the packets on the network and the data is all there. My current solution is to keep my socket messages short (247 bytes) and send one extra byte past the end of my data.

I would like to include more information in my messages and I cannot find a way to make this work. If I knew 100% how long the packets will be on the network, I could work around this by including an extra byte in just the right places. However, I don't want to make any assumptions about the length of the packets.

Here is a sample of my client receive code:

Private Sub ReceiveMsg()
Dim nTotalBytes As Integer
Dim nNumBytes As Integer

[Code]....

View 2 Replies

Hittest - Dragging And Dropping Data From A Combobox To A Datagrid

Sep 24, 2011

I am dragging and dropping data from a combobox to a datagrid. I'm using VS2010 VB for a windows app. My problem is that the DragDrop event for the datagrid gives x,y mouse positions that are relative to the physical screen that I am using, not the datagrid. So when I use hittest to calculate the row and column the result is out of the bounds of the datagrid. If I manually drag the form around the physical panel, the x,,y coordinates on the dragdrop event chage accordingly. This is really strange.

View 2 Replies

Vb 2010 Shortcut Path Extraction From Dropping .lnk Onto Form?

Feb 19, 2012

Scenario:I am attempting to perform some work on files (rename/delete) in folder, usually in a network location. Because the location of products folder is not critical, it's rarely ever in the same place on different networks. A simple shortcut on the client machine is all that's required from the client perspective and the rest of the product is self contained on the server somewhere. To run the 'fix' my small application will perform quickly and easily, I need to parse the path held in the target box of the .lnk. Then perform ifexists for a specific file and then do my renaming/deleting.

To keep it as simple as possible, the end user should just 'drop' the shortcut onto my form then click 'fix'.The problem: How in the heavens can I retrieve the target location from the .lnk into a string without windows scripting host?

View 3 Replies

Create A Folder And Dropping A File In It, With Area To Detect Input

Dec 25, 2010

Make a folder, based on an input file - example :

You have a file named Movie1.avi on your desktop, u open up the program (that I want to make) and then simply drag drop that file into a box area, and then the program will create a folder, with the same name as the input file, but without the extension (folder name Movie1) and then automatically put that file into the folder it just created.

The new folder will be created in the same dir as the input file.

Multiple file support - is NOT needed.

I know how it will be done, but I don't know the code..

View 5 Replies

Find The Index Of The Target Line Under The Mouse When Drag-dropping To A ListView?

Oct 10, 2009

I want to drag-drop single text items from ListView-A to ListView-B (both are in Details mode), but can't see how to read (and hence highlight) the index of the line in ListView-B when the mouse is hovering over it. Easy in a ListBox, but the PointToClient > IndexFromPoint features don't work with ListView controls and I just can't see another way .

View 6 Replies

Indicate The Lowest Datetime?

Nov 17, 2010

is there something that can be called to indicate the lowest datetime possible?

View 3 Replies

Calculating Average And Grade?

Jun 21, 2010

Using VB.NET write a program that can calculate the grade of a student based on his or her marks in five subjects as input according to the following rules:

Grade A: For average between 100 and 80 (inclusive)
Grade B: For average between 79 and 65 (inclusive)
Grade C: For average between 64 and 40 (inclusive)

[code].....

View 2 Replies

Course Average To Letter Grade?

Mar 3, 2010

It works up to this point but when I try to add so that 70-79 is a C, 60-69 is a D, and 60 and less is a F I run in to problems.

Module Module1
Dim Average As Integer = 0
Dim Response As String = ""

[code].....

View 3 Replies

Listbox, How To Get Grade Scores Up

Mar 10, 2010

Heres my code:

Dim num1 As Integer
num1 = Val(InputBox("Subject Name:"))

[code].....

View 1 Replies

Get Lowest Number From Different TextBoxes?

Jan 6, 2012

Get lowest number from different TextBoxes?[code]...

Now im looking to get the lowest number in one of the ".checked" TextBoxes and add that number to a new Array.

View 26 Replies

Lowest Possible Image Format

Dec 11, 2010

I'm trying to save an image with the lowest possible quality. The lowest I got with a few colors was using the SaveJPGWithCompressionSetting the file size was 43kb.What im trying to achieve is something like remote desktop, the client constantly takes images for the current desktop then send its via TCP to the server(because I cant figure out any other way to get desktop stream). Everything works great but If I want to be more Real-time the image quality needs to be lowered. I can create 43-50kb desktop snapshot of a 1600x900 resolution,

View 6 Replies

VS 2010 : Find The Lowest Value?

Oct 13, 2011

For this assignment, the user has to enter 10 number and my msgbox will show the number of negative number aswell as the lowest number.here's what i,ve come up with

Quote:

Dim innombre As Integer
Dim innbrnegatif As Integer
Dim inpetit As Integer

[code]....

how to find the lowest value and obviously i'm not able to show the number of negativ number.

Dim innombre As Integer
Dim innbrnegatif As Integer
Dim inpetit As Integer

[code]....

I was able to make the program work for the smallest number but it doesn't show the number of negative number.2nd edit: i changed the innombre to innbrnegatif+1 in the nbrnegatif = innbrnombre+1 and now it seems to be working.

View 7 Replies

Calculate And Display Letter Grade

Nov 21, 2010

I have coded this not sure how to get it to display correctly to the lblGrade box. I have set it up for. Supposed to take the average of three grades and display the letter grade for the average of the three grades.

Here is the code
Public Class frmMain
Private Function CalculateGrade _
(ByVal txtTest1 As Decimal, ByVal txtTest2 As Decimal, _
ByVal txtTest3 As Decimal) As String
Dim AverageScore As Double
[Code] .....

View 8 Replies

Display Grade Based On Points?

Mar 1, 2010

I have a homework assignment to code an application that allows the Prof to display a grade based on the numnber of points he enter. The grading scale is : 0-299 -F; 300-349- D; 350-399- C; 400-449- B; 450-500- A. We are to store the minimum points in a 5 element one dimensional Integer array name intPonts and store the grades in a 5 element one dimensional String array name strGrades. The arrays should be parallel arrays. The procedure should search the intPoints array for the number of points entered by the user and then display the corresponding grade from the strGrades array.

I have stored the minimum points and grades in a one dimensional integer and string array respectively. I have coded the program, and when I put in random points, it gives me the letter grade. For example, if I put in 376 it will display a "C"; if I put in 200, it will display an "F". However, if I put in anything over 449, it will NOT display an "A", it just leaves the lbl blank. I am stumped on how to get the code to read pass 449 points.

here is my code:

' Name: Carver Project
' Purpose: Displays a grade based on the number of points the user enters
' Programmer: <Paul J. Williams> on <February 27, 2010>

[code]....

View 6 Replies

Forms :: An Assignment For A Grade Book?

Apr 11, 2011

Suppose a teacher has five students who have taken four tests. The teacher uses the following grading scale to assign a letter grade to a student, based on the average of his or her four test scores.

Test Score Letter Grade
90-100 A
80-89 B

[code].....

View 1 Replies

Getting A Letter Grade Using Select Case?

Dec 14, 2009

I made an application that calculates course grades. The program runs perfectly except for the last part

The the final grade number comes from the label "lblCoursePts" and i want to put the letter grade in the label "lblFInalGrade" Here is what i have.

'Determine the final letter grade
Select Case lblCoursePts.Text
Case 90 To 100 : lblFinalGrade.Text = "A"

[Code]....

View 5 Replies

Grade Analysis And Curve Calculator?

Dec 19, 2011

Write a program to analyze a list of grades to determine the number of A's, B's, C's, etc. after applying a curve percentage selected by the user. When the form loads it should contain all the grades and available curves in the list boxes on the left. The user selects a curve and clicks the "Apply Curve" button. The program should display the curved grades (based upon the selected curve) and the grade distribution in the list boxes on the right?

View 1 Replies

Grade Program With List Boxes?

Jul 4, 2009

I'm trying to code a program that averages a grade from a list box, but the numbers in the second list box could change, so not sure how to code that. It should list the letter grade and the average, then if they don't enter a grade, should tell you to enter a grade first before hitting the average button.

Public Class MainForm
Dim ErrorMsg As String
Dim intNum As Object

[Code].....

View 5 Replies

Is Microsoft Degrading VB To A Second Grade Language

Oct 6, 2009

Microsoft is trying to assure that it loves VB and VB programmers and wants them but in reality the opposite is happening. All code samples either from Microsoft or third party developrs portrait C# code. For the same reason C# programmers are challenging VB Programmers in every field.

View 5 Replies

VS 2008 Grade Averager Program

Nov 9, 2009

I am trying to make a simple program that utilizes lists, loops, arrays, and multiple forms. I started the program in which I have incorporated lists and loops already.A summary of my program; I am trying to be able to add a name to a combobox list, and assign a grade to that particular person (grade of A = 4, b = 3, ect ect). I am assuming I should utilize the array concept at this point when assigning the grade to the name, but I am not exactly sure what to do. I have attached a screen shot of my form, and I will post what code I do have so far.Also, when all the grades are entered with their corresponding names, I want to also have a summary screen pop-up with the names and which grades they received, plus the average.[code]

View 13 Replies

VS 2010 Have The Code To Display The Min And Max Grade?

Feb 1, 2010

Is there any way to have my code display the min and max grade without having to re due most of it?

View 2 Replies

Check The Lowest Unused Number?

Jul 6, 2011

I have a table named tbluser with fields code and name. I want to check the lowest unused number in code. For example table below:

code name
60688 jane
60689 dina

[Code]....

i have also one textboxt what is the first, second and third number to search
ex.

if
text1.text=6

therefore first number is 6 second and third is 06 and the result should be
60601 since in the code the lowest unused code is 60601.

View 23 Replies

DB/Reporting :: Datagridview Get The Lowest Value In A Column?

Nov 12, 2008

I have a datagridview and has two columns(UserName and Age), what want to do is to get the UserName that has lowest Age.

View 2 Replies







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