Writting A Trivia Game For A School Project?

Mar 25, 2011

I need help writting a Trivia Game for a school project. The teacher wanted us to get used to looking to forums and google for help so he refuses to help us for this particular summative.

What I want to know is.. how to use a streamreader to read questions randomly from a text document located in the debug folder (I have 10 questions all in 1 text file in the debug folder, and the same for all of my answers) how to use a streamreader and split function to read answers from a text document located in the debug folder to a combobox.

[Code]...

View 19 Replies


ADVERTISEMENT

Game Programming :: Developing A Game To A School Project

Jun 3, 2010

I am developing a very simple game in visual basic 2008: a roulette. And yet I found problems in develop it.My question is this: I have an image ,containing all the roulette's numbers and I want to associate the spaces of the different numbers to different buttons, so that which time I click in a certain number on the image it dos some action.How can make this association of the different spaces in the image and different buttons?

View 3 Replies

Project For School (snake Game)

Dec 6, 2010

Iam doing a project for school (snake game) Ok here is the code:

[CODE]:................

Snake.image is the head of snake and snake2.image to snake27.image are the rest(body...) So i want create a code that (if snake intersect snake2 to snake27 parts) then timer1.stop I have tryed with:

CODE:

But it doesnt work..

View 6 Replies

Writing A Battleship Game For A Final Project For School?

May 5, 2010

I am in the process of writing a battleship game for a final project for school. I get what to do for the most part, but need a little jump start for writing the "ships" class. Does anyone have any suggestions?
So far my game starts with a dynamic array of buttons, but as of now they don't do anything. I need to be able to have the user place ships in places and have the computer randomly generate positions.

View 2 Replies

VS 2008 Trivia Game - Can't Just Put "MsgBox("Correct")" Under One Of The Multple Choice Buttons

Oct 7, 2009

User of Virtual Basic, as we really just started programming in my Computer Programming class yesterday. I figured that I could use Visual Basic to make a trivia game of some sort to study for various classes and stuff.

The game is set up in four categories based on topic, which each has 10 questions. I have no problem linking one form to another here. However, each question is multiple-choice. To get to each question, you need to click on a button, which changes the label text and all that. The problem I'm running into here is that I need a way to get a message to pop up saying "correct" or "incorrect" for each question. Being that each question will have a different answer, I can't just put "MsgBox("Correct")" under one of the multple choice buttons. I've Googled this, and I've found something with setting values to each button, which I tried, but I must have done it incorrectly.

View 1 Replies

Make A Hangman Game For School Using VB 2008 Express?

Dec 1, 2011

I have to make an hangman game for school using visual basic 2008 express and make it a console application...because i need better mark i want to show an image when a player loses or wins(i think it can be done with windows application)...

View 9 Replies

Add Extra Function To A School Project

Jan 11, 2011

I'm wanting to add two forms to my project that will allow me 1) Pull all the current MS Updates installed and list them in a nice looking grid, 2) Pull a list of all the available updates for the machine. I would love for this to work on XP/Vista/7.

View 5 Replies

How Can Made School Project In VB 6 Or 2008

Mar 29, 2010

how can made school project in vb6 and vb.net2008 with full sources code?How can Made School project in Visual Basic 6 or 2008?

View 2 Replies

School Project Remote Acess

Mar 4, 2011

im working on a school project where i shall show/explain how a remote acess program work and i coded the most but when want to send all listbox items from server to the client and in the client is another listbox where it should be transfered over..[code]

View 4 Replies

Make An HTML Editor For School Project?

Jan 27, 2012

I'm trying to make an HTML editor for my school project. color coding the text so if they type <html>, <b>, <body> in any case it'll color code it to turn blue.

View 5 Replies

Null Reference Code In My School Project

Jan 15, 2011

I am basically 4 weeks into my first ever programming class and we are working on a project for the game "Hangman". While I have struggled with everything for the past 3 weeks, I have finally cams across something I have no idea how to correct. I am getting a Null.Reference error in the following line of my

If Not strWordToGuess.Contains(strLetterGuessed) Then

Now this code was provided in my project files, it was dated 4/07, I am currently working in VB 8 express, I am thinking this might have something to do with it.

View 14 Replies

Project Work School Tracking System

Jun 18, 2012

i would like some help with how to start with my FINAL YEAR project work dubbed "SCHOOL TRACKING SYSTEM" . I am so much lost on how it shoud be like and what to actually do.

View 2 Replies

School Project Music Maker Kinda

Dec 9, 2009

So I am supposed to be choosing a final project for my visual basic 2008 class. I cannot help but remember an old high school classmate from web design class who made a program that used the speaker built into the motherboard (or whatever makes the start up beep when you turn computer on) to time the beeps to play simple songs. It was very funny and amusing and I was wondering if anyone had seen something similar or knows how to go about making one?

View 5 Replies

School Project Where A Picture Is Covered By 48 Buttons

Mar 15, 2011

So as the message says i believe im having a problem when declaring an array as control. The background:Im doing a school project where a picture is covered by 48 buttons. When a user clicks a button, they are asked a question. If they answer write, the button disappears until the whole image is displayed.

Im using each buttons visible property to hide it. Now that i think about it, i should probably un-enable it after a question is answered correctly.anyway, I keep getting a NullReferenceException when making the visible set to false. Any suggestions would be awesome. I have already created all the buttons and named them Q1-Q48.

[Code]...

View 7 Replies

VS 2010 Making Calculator (for School Project)?

Jun 30, 2011

I am making a calculator for a school project, I want to have it so it looks similar to windows calc ( with one button for each number & only one text box),My code has a few blank spots but so far it is :

Public Class calc
Private Sub Btn1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btn1.Click
IOBox.Text = IOBox.Text + "1"
End Sub

[code].....

View 5 Replies

Move A VB Project From School And Home On A Flash Drive?

Dec 13, 2009

I move a VB project from school and home on a flash drive. At school drive mounts on E: at home it mounts on F:. I have 4 forms, Form1, Form2, Form3. Form4. Form1 and Form3 have incorrect file paths, it has the E:, but Form 2 and Form4 path change just fine when I move it from school and home.

View 1 Replies

School Project On Taking Order System(POS) In A Restaurant Using VISUAL BA?

Jul 19, 2011

Im doin my school project on taking order system(POS) in a restaurant using VISUAL BASIC?the word visual basic is very new for me...i already do some of the coding,this system not using database,just a simple POS system..When i insert y(for yes),msgbox for order_code and order_quantity apear.but when i insert n(no),msgbox for order_code and order_quantity apear again for one time then stop.then msgbox for calc2 pop out but the value isnt right..calc2 also calculate the order_code and order_quantity,the one that apear after i strike no.

[Code]...

View 1 Replies

Writting & Reading To/from The Registry?

Oct 24, 2011

I was just playing around with trying to set up a datacontract that returned a class that had a property that took/returned an enum value. I could set the class up so that it worked great, but the service contract seen by the client had the enum turned into a string, of all things. Had it been turned into an Integer, that would have been useable, but not a string

View 1 Replies

Writting Values To A .csv File?

Sep 2, 2011

We have a middle tier application which transfers data from one application to other.I need to write few values to a CSV file but every time the code runs it overwrites the prevoius line.How do I start with a new line every time

TextWriter tw =
new
StreamWriter("D:\parsII\Build\CCSDataProp\bin\server\smaple.csv");

[code]....

View 8 Replies

HangMan Game - Project That Has A Graphical Interface ?

Apr 20, 2009

I am working on this hangman project that has a graphical interface where the user has 2 options either guess the entire phrase or use a combo box to guess letters. I have the guess text box working but I can't for the life of me figure out why it is not working correctly with the combo box. The following is my entire code for the project. I have it setup to show me which phrase it randomly selected but when ever I pick a letter in that phrase it doesn't fill it in or anything. I'm thinking it is an issue with my loops.

I highlighted the section where the problem is occurring.

Public Class frmHang
Dim strWord(10) As String 'array of answer cchoices
Dim strAnswer As String 'the correct answer

[CODE]...

View 6 Replies

VS 2010 Creating A Game Of Pairs As A Project

Apr 26, 2012

I'm having a little trouble creating a game of pairs as a project.Basically I've got to the point where I can start a game, layout a bunch of cards in a grid, 6x6, and then have a way of matching the pairs together. First of all I used a For loop to assign the cards into a two dimensional array. They are pictureboxes however so when a user clicks on 2 cards, checking them to see if they match has become confusing. I've tried to stuff like this for example but it's not working: [code] This doesn't work because it can't compare the picture boxes stored to the array slot. Is there any clever person with a way around this? Or that can think of a way to compare them. The pictureboxes kinda need to stay like there though :/

View 2 Replies

VS 2005 Writting & Reading To/from The Registry?

Sep 24, 2009

What I am trying to do is save a value (from a textbox) to the registry, and later retrieve the same:This is the code (not working) that I have at the moment:My.Computer.Registry.SetValue(My.Application.Info.Title, (TextBox1.Text), "MyFCA")

View 17 Replies

Writting To A Processes Memory In VB 2008?

Aug 7, 2008

was wondering if it was possible to write/read from a programs memory inside of your visual basic 2008 application. I've done tons of research and "googled" everythingt to be able to read/write values of a running process from with my application.I did read somewhere that you can only read/write up to 4bytes in vb.net, That would be just perfect

View 6 Replies

Writting Variable To Text File In Vb?

Apr 15, 2012

i have a vb project im getting a bit of trouble with.this is how it should work user input text in the textbox. the input text will be count as single character each one by one after been checked they will be writen to a text file but all in caps if use input symbols, there is a look up table to turn that symbol in charater and then write it to the text file. after all that are writen to the text file another part of the program will copy the text file to another location and delete the original one. so here is my problem because the text file will be deleted i need a code that will create a text file each time the programme runs.

[Code]...

View 5 Replies

Game Programming :: Refering To A 2nd Imported Project, Within The Same Solution?

Jan 21, 2011

i Imported 2 programs that I made into one solution. I made a "BIG" main menu (new windows form), put two buttons. I code one button to open up the first project (that works fine). I code the other button to open the project I imported, however it says that the name is not declared. Am I doing something wrong? here is my code for the "BIG" main menu:

[Code]...

now only the "Original name of first project" appears to be not declared, if I delete "Original name of first project", then "the project I imported"is not declared and so forth. Note: These are not the exact names I called my forms. I'm just trying to explain it clearer.

View 2 Replies

Writting Data Into A Text File At Particular Position?

Sep 2, 2009

I have a text file containing the data in following format

12345 Abdt3 hy45d et45a 76huj agsj7

Now I want to replace hy45d with another sting that is created on run time. But I am not finding any way to do it. It keep replacing the firt item or append it in next line.Code that I am using is

Public Sub SaveToTextFile(ByVal PNR As String, ByVal CaseCount As Integer, ByVal Type As String)
'- Location of the Text files
Dim targetFile As String = "C:TestReportTextFilesPNR.txt"[code].....

View 4 Replies

Game Programming :: Make Snake In VB For Major Year 12 Project In Australia?

Apr 3, 2008

im trying to make snake in visual basic.net for my major year 12 project in Australia and i cant get it to work?

View 5 Replies

VS 2008 Read / Writting Floats / Doubles / Longs And String

Jan 3, 2010

I've been researching all over Google for how to Read/Write Floats, Doubles, Longs and String to memory. I believe I have the reading Longs, and Floats working properly. I'll post my Module (which contains all my Read/Writting).[code]

View 2 Replies

Project - Add Bottom For " Start New Game" And Make Label For How Many Time X, O Win ?

May 4, 2009

I have been working on my project for the finals but i need to add something on the project. I need to add bottom for " Start New Game" And I need also to make label for how many time X, O win .Here is The Code

HTML

Public Class Form1
Dim clickCount As Integer
Dim player = 1[code].....

View 8 Replies

Teach VB High School?

Jan 22, 2006

Where can I find some books that might be used at the High School level to teach students programming using Visual Basic from the ground up, assuming no knowledge of programming?

View 5 Replies







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