Make Student Positions In Class?

May 19, 2012

i am working on an examination system. the system has to compute the grades and position of each student per stream and per class.each class has got 4 streams. I save the studentsmarks in the database. i want the system to determine the positions of students and the position of each student to appear on the rtf.. report, for example:

Position in stream:4
Position in Class: 21

[code].....

View 3 Replies


ADVERTISEMENT

Make Random Seating Arrangement For Students In A Class In Which No Student Has Same Seat Number

Mar 21, 2012

i want to know how i can make a random seating arrangement for 20 students in a class in which no student has the same seat number in vb.net.[code]i am having trouble with this part:Get the value for the set number at that location - that is where the student will sit.Remove the element from the list, using List.RemoveAt/Repeat while there are elements in the list.

View 3 Replies

Array Of My Student Class

May 14, 2010

I created a simple Class called Student.[code]And then I tried to create an array of Students called s. I'd like to do something simple with the names of one of the students like the following..[code]I know that I need to use the New keyword to create an instance for each s(), but I'm not sure where to put it. When I try it without the array it's easy.

View 2 Replies

Add Student Average Information To Properties Of Student Records Created In Previous Sub Procedure?

Apr 19, 2010

I have created a class called Student, with five private variables: [code] My main form is divided into a number of different sub procedures. In one of them, I used a streamreader to take the first name, last name, and phone numbers of a list of records in a text file called PersonalInfo.txt. It seems to work just fine. [code] I have another, separate sub procedure in which I read a different text file containing the "averages" for the students. The first average from Averages.txt belongs with the first student in PersonalInfo.txt. The second average goes with the second student.. How do I add the student average information to the properties of the student records created in the previous sub procedure? [code] I realize why this wouldn't work, but I can't figure out how I could use my counter to reference a specific student.

View 4 Replies

ASAP VB 2010 - Randomly Select A Single Student Out Of The Student Array Based On Their Subscript Number

Mar 6, 2012

randomly select a single student out of the student array based on their subscript number. This will be accomplished by the following:

[Code]...

View 4 Replies

Make Student Registration In VB 2008?

Jan 12, 2010

I'm trying to do a rigistration system using vb 2008..the system must have database in access must have search button to searh student name then whenever i click a student name it will automatically fill their name in a form...

View 2 Replies

Make A Search Button With It To Search For Student Id?

Jun 21, 2010

i have 1button,1textbox,1datagridview.i want to make a search button with it to search for student id..i use ms access..example i type 12-200705-0005 on the textbox,then i click search button,then the data with student id will show at datagridview..

View 1 Replies

Can't Make Difference Between Public Class And Private Class And Friend And Protected Friend Class

May 15, 2009

I can't make difference between public class and private class and friend and protected friend class.

View 1 Replies

Tab Positions In A TextBox?

Feb 18, 2011

Is it possible to add text to a multiline textbox in a particular column? Like so:

Sugar 10 Ohio
Coffee 50 Texas

Or should I be using a different contro

View 5 Replies

Manipulating Pictureboxes Positions?

Dec 18, 2011

i'm creating a game like text twist. that when i press letter a, i need to determine which picturebox contains letter a and display it to different location. that also goes to the proceeding letter a's. for example, i have a jumbled letters "aamba". in my code, it only gets the first letter a and removes it form the screen, it's nowhere to be found. and it won't recognize that i still have other letter a's i'm pretty sure about the location that i set it to be placed.here is my

(it's kind of brute force i think)
ElseIf e.KeyChar = Chr(97) Then
counter1 = 0[code].....

View 7 Replies

Allow Certain Characters In Certain Positions In Text Box?

Feb 10, 2010

For example I only the second character in each line to be an x, while the 3nd to 10th character must be a hex digit.At the moment I use a Select Case, then check the position of the caret (using textbox.selectionstart) and see if the key being pressed is a "legal" character.Is there a better way of doing this as it slows down on large amounts of text.

This is the code I have at the moment:
Select Case TextBox1.SelectionStart
Case TextBox1.GetFirstCharIndexOfCurrentLine + 1

[code]......

View 4 Replies

Changing Picturebox X / Y Positions

Mar 5, 2011

I'm trying to make my own clone of space invaders as it's been about a year since I've done any programming, and I imagine this will be a good way to get back into it. The main issue that I am having right now, is that I am basically clueless as to how I go about moving the player on a keypress. I have the code for the keyboard input correct, how to move my picturebox.

Here's my code so far (in a nutshell):
Dim PlayerPositionX as integer
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
Select Case e.KeyCode
Case Keys.Left
[Code] .....
I imagine I probably messed up very badly on this, but I'm completely lost!

View 4 Replies

Set Positions Of Many Pictureboxes Efficiently?

May 23, 2011

I have 20 PictureBoxes named PictureBox2 through to PictureBox 21, where I need to conditionally set the positon of them. I was wondering if there is a more efficient way to set their positions than to copy the code out 20 times. This is what I have so far:

For NextPos As Integer = 2 To 21
Select Case Direction
Case 1

[code]....

View 4 Replies

VS 2008 Get The Icons Positions?

Aug 5, 2010

how i could get the icons positions i made some code to get the file names and everything but wanted to know how i could get there positions! also i found some codes with google but most of them where in vb6?

View 10 Replies

IDE :: Remember Tear-off Window Positions?

Jan 12, 2010

I like to put my Code windows on my 2nd monitor. But after I close them they always reappear as tabs on my primary monitor. How can I get VB2010 to remember to put them on the secondary monitor instead?

View 1 Replies

Make Class Array Inside Class

Feb 28, 2012

I am New to <acronym title="Visual Basic">Vb</acronym>.Net. this is my first test. i try to create small address book. but i don't know what wrong. it compile perfect but when it run it give error and not work. is there any other way to add same class like in class inside array?

[Code]...

View 6 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

Change The Positions This Small Circle In The Graphics?

Sep 28, 2010

I am attaching a sample working program. But in this program i need to do some changes,those changes i have explained in the .docx file.

View 5 Replies

Nested Splitcontainers: Remember Splitter Positions?

Jul 2, 2008

I have 3 splitcontainers on my form. Each splitcontainer has vertical splitter orientation

This forms 3 'panels' which are resizable by dragging their respective splitters.

Each vertical 'panel' is then split horizontally by adding another splitcontainer with horizontal splitter orientation. I now have 3 column 'panels' each of which is split into 2 'rows'

My question is :
In a nested splitcontainer scenario
When a user drags splitters and resizes panels,
how can I remember the last splitter location
so that when the form is closed and reopened,
it remembers the last used positions ?

View 13 Replies

Possible To Rotate Characters In String By Some Number Of Positions

Apr 12, 2010

For a project I need to do a String strX is said to be a cyclic rotation of a String strY if it's possible to rotate the characters in strY by some number of positions, n, such that strY becomes strX. I don't mean rotate in a Caesar sense here but in a left-right (or right-left) sense. For instance, strX = abanan is a cyclic rotation of strY = banana because rotating the characters in banana to the right by n=1 (i.e., by one position), wrapping accordingly, yields abanan. Similarly is strX = anabana cyclic rotation of strY = banana because rotating the characters in banana by n=3.I need to write an application that returns True if strX is a cyclic rotation of strY otherwise the result is False. I'm looking into how to do this, I know it will involve and if then statement and possibly some loops. Is there anyone who can help me better understand what I should do?

View 4 Replies

Randomize Positions Of Arrow And Add Points To Score?

Jan 13, 2010

I am making a game that is similar to Dance Dance Revolution. As you know, there are moving arrow keys, but when i run the program, only one arrow moves up in a loop. I don't understand what is wrong with the code. Also, the score is messed up. It doesn't add or minus points.
Code:
<!--c1-->
CODE

View 3 Replies

Switch Positions Of StateImage And IndexImage For TreeNode

Jan 17, 2012

I would like to know if it is possible to switch the position of a StateImage with that of an IndexImage for a TreeNode in a Winforms TreeView? Please refer to the image below for an illustration. The first TreeNode has a stateImage and the second one doesn't. My aim is for all IndexImages to align to the left and the StateImage (if any) to be to the right of the IndexImage. The resulting tree would look something like: I think I have to set the tree DrawMode to OwnerDraw and override OnPaint. I read this msdn link but nothing there was said about drawing images.

View 1 Replies

VS 2005 Swapping Collection Members' Positions?

Jul 22, 2009

This I'm almost certain is an easy problem for those with more experience than me. I just need a routine that trades the places of 2 members of a collection class.

For example: If there are 5 objects stored in a CList of() collection class, I want to swap item # 3 and #5 (or any pair of indexes), what would be the code?

This simple problem has my head spinning because once you remove a member all the indexes change.

View 8 Replies

Working Out The Point Positions Along A Straight Line?

Jul 22, 2010

I have two points (x1, y1) and (x2,y2) and have a straight line between the 2 points, from this I can work out the distance between the 2 points lets say it is 50.What I want to do is increase or decrease the length of the line by a predefined amount lets say 10.So If I increase the line length by 10 (from 50 to 60), What I want to work out is what point(x3,y3) would be at the end of the increased line.Hope this makes sense.I have tried to work out the new point using the angle but it does not work correctly, it does not seems to produce a perfectly straight line and the angle from point (x1,y1) to the new (x3,y3) is not the same as the angle from point (x1,y1 to x2,y2).

This is what I have tried:
:I work out the angle
aAngle =Math.Atan((Y2 Y1) / (X2 X2))

[code].....

View 1 Replies

Find Current Positions Of Cursors In A Textbox Or Listbox?

Jun 18, 2010

How to find current positions of cursors in any textbox or listbox?

View 1 Replies

VS 2008 Setting The Index Positions And Lenghth To A Specific Number?

Mar 23, 2010

I dont want to be setting the index positions and lenghth to a specific number becuase when i choose a different name from the listbox that is at a different position or longer it wont display it properly. explain to me another way around this so as it will allow any details to be selected and read???

[Code]...

View 16 Replies

Why Doesn't Picture Box Clear And Get Duplicate Displays At Different Positions On 2nd Click

Jun 13, 2011

When btnSetup is clicked, 7 rows with 24 colored predefined rectangles are displayed in the pbColors picture box as as intended. The controls on the first page of a tab control. I would like this display to remain intact when I change tab pages but when I return to this tab page the picture box is cleared. If I click the button, for some reason the group of colors is displayed twice, one after the other, instead of once as intended.

[Code]....

View 3 Replies

Make Obejct Of A VB Class From C# Class?

Jan 9, 2011

Can i make obejct of a VB class from C# class, if possible then what i'll have to do?

View 3 Replies

Add A Student's Name To A Combo Box?

Mar 16, 2009

My objective is to add a student's name to a combo box, in proper mixed-case, no matter how the user enters the name.

When any of the following examples are entered:

jones, carl
SMITH, IDA
bLACK, dEVIN
Johnson, Eric

[Code].....

View 3 Replies

Calculating Student Average Using For Next

Oct 12, 2011

The idea of this program is to calculate and find total and average for 3 Students automatically. That is when the first data is entered and click on button the total and average of first student should be displayed in listbox. And we should be able to enter second data. Bu the problem is it is just printing the first average and total thrice.

Dim a As String
Dim tot, avg, N As Single
Dim I As Integer
For I = 1 To 3
tot = Val(TextBox2.Text) + Val(TextBox3.Text) + Val(TextBox4.Text) + Val(TextBox5.Text) + Val(TextBox6.Text)
[Code] .....

View 1 Replies







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