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


ADVERTISEMENT

Create A Form Covered With Required Array Of Buttons Automatically?

Jan 28, 2011

I am trying to build a battleship game. The project is giving me one minor difficulty (so far). I do not know how to create the game board made up of 100 buttons. I can obviously drag and drop 100 buttons onto the form but this lacks a certain style, it would also be a pain. How do I create a form covered with required array of buttons automatically?

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

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

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

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

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

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

Different Buttons And When These Buttons Are Clicked In The Defined Order Then Having A Picture Displayed?

Feb 5, 2010

What I would like to do is to have four different buttons (e.g., buttonA, buttonB, buttonC and button D). I wanna give the following instruction to the people: press these buttons in the following order: first buttonA, then buttonB, then buttonC and last buttonD. If they obey this instruction then a picture will be displayed, for instance a happy face. All the other combinations will not activate this picture to be displayed, or in other words, there won't be any consequence. I would also like to save this data using windows note pad e.g., writeline (1, xxxxxx). Is there any chance I will make it?

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

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

Picture Boxes And Radio Buttons?

Nov 15, 2009

I'm creating a windows form application, which contains radio buttons, that when checked and the button is clicked, display a certain image in an image box based on which radio button was checked. I'm having trouble with assigning the certain image to the radio button. Can I use If/ElseIf statements?

View 3 Replies

Picture Viewer Next And Back Buttons

Jul 22, 2010

I am a complete newbie when it comes to programing so i downloaded Visual Basic Express yesterday. I followed the tutorial here to create a picture box. [URL] Now i am going through and making some changes. Is there anyway to make a code so that there can be a next and back button?

View 3 Replies

Forms :: Use Two Radio Buttons To Show Picture

Nov 30, 2010

I have a form with two group boxes. The first one has two radio buttons and the second has four. The user chooses one button from the first group box and one button from the second which gives me eight selections and I would like a different picture for each selection.

View 5 Replies

Link Radio Buttons To Display An Image In A Picture Box?

Sep 6, 2010

Trying to link radio buttons with images in a picture box, but can't remember how to start the coding.

View 2 Replies

Dynamic Creation Of Picture Boxes, Buttons, And Labels For Each Item

Apr 7, 2011

I'm currently working on a program where I'm trying to dynamically create a picture box, a button, and a label for each item in a text file. Any ideas on how to do this? What I have: a plain text file with a list of numbers. Each number corresponds to a location. When that file is read, I want to create a picture box, a button, and a label related to each number. If I want to add something to the screen, all I Have to do is add a number to the file. So, lets say the file has. 1, 2

When the file loads, it will create a unique item on the display for each location. say pic1, button1, and label1 and pic2, button2, and label2. Right now, if I add something to the file, I have to go back into the editor and manually add everything. Which is a pain.

View 1 Replies

VS 2005 Toolstrip Is Covered When Form Maximized

Aug 6, 2009

I have a toolstrip on a winforms application and below it a DataGridView. Everything looks fine when the program runs initially. If I maximize the form though, the DataGridView covers part of the toolstrip. How can I make the toolstrip lock in place so that nothing will overlap it?

View 4 Replies

[2008] Get Part Of Background Image Covered By ListView Control?

Mar 10, 2008

In my project, I have a form with a background pic that I like, but unfortunately, I also have a ListView on that form which covers most of the picture. Now, is there a way to find the part of the background image concealed by the ListView, and then display it as a background image of the ListView at decreased opacity? You know, like a vague image.Just one more thing, setting the form's transparency key to the background color of the ListView is not an option.

View 39 Replies

Add A Menu With Radio Buttons To The Setup Project?

Feb 1, 2010

I have a VB.Net application with different versions for XP and Vista/WIndows 7, I want to create a Setup/deploy project to allow the installer to select which version they want to install. I know how to add a menu with radio buttons to the setup project, but how do I execute the msi file from the selection?

View 6 Replies

VS 2008 : Use The Keydown/keyup Events With Buttons In The Same Project And It Not Working Properly?

May 12, 2009

I am trying to use the keydown/keyup events with buttons in the same project and it not working properly. I have 4 red boxes and when I press an arrow key the box should change to green according to which arrow key it corrosponds to. I have this part working fine, however only when there is nothing else in the project. When I add in say 3 buttons, Button1, Button2, Button3 and try runing the program instead of the correct red box changing to green, button outline just moves between buttons 1,2 and 3. I have tried turning tabstop off for the three buttons but that didnt work. how to read the keydown/keyup while still having buttions that can be pressed with a mouse?

View 4 Replies

Resolution And Buttons - Tabs, Inside Each Tab There Are Buttons (the User Can Add The Buttons When They Want)

Mar 3, 2012

I have a piece of software with two tabs, inside each tab there are buttons (the user can add the buttons when they want). when tab1 is full tab2 should start to fill. I currently know how many buttons fit on the screen so I just say something like if buttons > 150 then start to populate tab 2 The problem i have now though is if the resolution is changed then a different amount of buttons can be displayed. so if I put my screen to 1280x720 some buttons are left of. I was thinking of detecting the resolution and then using different cases for different resolutions but this seems very inefficient im wondering if there is a different way?

View 5 Replies

Maximized State "covered Screen" But It Doesnt

Feb 11, 2010

Supposed to be my form should be in maximized state when the time passed. However its not fully covered my screen its just covered slightly half on top left of my screen. What i meant is that i set my timer into 500 and decrease it by 5, while the timer running i open my WarCraft3 and its in full screen, when the time expires my form should be in maximized state "covered my screen" but it doesnt, i know it is because when Warcraft3 open it changes the resolution. SO am i able to fully covered my screen ?

View 2 Replies

User Control - Being "covered" By Another Controls?

Jun 27, 2011

I created a User Control and I used a button to "call" this control. However, when it shows up, it's being covered by other controls. How I can make sure this control on the top?

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