Cannot Get My Questions To Appear On The Buttons On VB 2008

Apr 2, 2012

im stuck programming a visual basic quiz.I cannot get my questions to appear on the buttons on visual basic 2008 and do not not why not.

[code]...

View 15 Replies


ADVERTISEMENT

Retrieve Random Data (questions) From Access 2007 Using Vb 2008?

Mar 3, 2012

how can I retrieve random data(questions) from access 2007 using vb 2008?

View 4 Replies

VS 2008 Script - Form In Which Have Added 5 Questions - Each Question Has 3 Possible Answers

Sep 4, 2009

I got a form in which i have added 5 questions , each question has 3 possible answers , so if a user selects the correct answers then when he hit the OK button he will pass the quest ... if he hit the OK button without having the right answers selected , i want to show him which answers are not correct .. show him which answers he selected ..

View 11 Replies

VS 2008 Creating Game - Randomly Selecting Questions By Clicking Button

Jan 13, 2010

I am creating a "Who wants to be a millionaire" game. Lets say I have 100 questions in a listbox. How can i randomally select a question by clicking a button.

View 11 Replies

VB 2008, Get Some Buttons To Interact With Other Buttons On Screen ?

Sep 15, 2009

i need to get some buttons to interact with other buttons on screen when i click then, as each indivual button gives a slightly different result.imagine this:[code]....

then i need then to hide different buttons depending on which button was pressed. so say i pressed button 1 then all the buttons showed but alternativly if i had of pressed 2 then say button 5 and 6 disapear.managed to get one way to work but then i would only ever end up with the first results every time.

View 2 Replies

Questions About Picturebox And Images?

May 6, 2011

I have made a screensaver in VB.NET. I am running into some roadblocks in the code though. The idea first was to have a ball bounce across my screens. It then evolved into spawning new balls that bounce across the screen. I then added collision detection so they would bounce off each other. Here is the problem that came up:

When said balls overlap each other, you can easily distinguish the edges of the picturebox that holds the images. I have made the background of the picturebox transparent, made the bitmap with a magenta background and made magenta transparent (for the image), but I can still see the picturebox edges when they overlap. It seems the transparency is not only making the background transparent, but giving it X-RAY vision to display not the visible area behind it, but the root background color of the form. here is a sample of the code which makes the transparencies.

Private Sub frmscr_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim bmp As Bitmap = My.Resources._smiley_face_image
Dim clr As Color = Color.FromArgb(255, 0, 128)
bmp.MakeTransparent(clr)

[code].....

I also tried to see if changing the image from background to foreground would help...no such luck.

View 4 Replies

Game Programming :: How To Randomize Questions

Jul 28, 2010

I am making a game on vb.net. It is like a quiz game. In the game there is a button which when pressed pops up a question. The code for the input box is as follows:

Dim Answer As String = ("sodium chloride")
Dim Question = InputBox("You have mixed Sodium and Chloride. What is the ionic bond name of this?", "Question?")

[code]......

View 4 Replies

Generating Random Questions In A Vb2008

Sep 5, 2009

Iam doing a project in vb2008 for a quiz program. i want to randomly generate questions in a textbox a question should occur once in the quiz session. i had my code:

Imports System.Data
Imports System.Data.OleDb
Imports AgentObjects

[CODE]...

View 1 Replies

Quiz Program - Asking Five Questions With Yes Or No Answer

Mar 19, 2009

I'm trying to make a quiz application with Visual Basic at the moment. I want to write a routine that asks five questions to which the answer must be either Yes or No. It must add up the number of Nos and if the number of Ns is less than two then print out "pessimist", otherwise print out "optimist". So far this is the design of what I've done. [URL]. However, I have no code which I've produced on my own.

Code:
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
End Sub
End Class

I really don't know how I can kind of add up all the results from each individual question, seeing as radio buttons are used.

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

Creating Array For Multiple Choice Questions

Nov 3, 2011

I am in the process of creating an array for a set of multiple choice questions but I am having a few problems. I am an absolute beginner at VB and I am creating a quiz that users will select one of three possible questions and then depending on their answer a +1 value will be added to the score. However I do not know where my questions and answers are supposed to go, from what I have read online I have to use (0, 1) format to give possible answers but I do not know how I would make the questions and answers display in textboxes on my form. At the bottom of my code I have also included code to randomise the questions although I am unsure as to if it is correct. At the moment I can run my form fine without any problems but my main issue is to how I will get the questions and answers linked to my textboxes on my form.

Public Class frmTest
Private ran As Random = New Random()
Public intScore As Integer
Private Sub cmdStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdStart.Click
'Turns the message box invisible when start is clicked
lblMessage.Visible = False
[Code] .....

View 5 Replies

Two Dimensional Array - Create A Questionnaire With Questions

May 30, 2012

I need to create a questionnaire with ten questions. The questions can be hard coded as labels. I will have a radio group box for each question, with options, Always, Usually, Sometimes, Seldom and Never. I will then need to store these values for each time that the questionnaire is answered, and another button that will show the question number and the answer count for each question up to that point in time e.g. [Code] I am also assuming I will have a button that when clicked, will identify the active radio button and add 1 to a counter? [Code]

View 13 Replies

Copy And Paste Code A Few Times And Rename The Questions

Dec 31, 2011

A while ago I wrote a quick and very very simple program to test myself on about 10 questions I needed to remember the answer to. I made a form with a label, text box and button. the label contained the question and the answer was entered into the textbox and the button was pressed to check the answer. the code i used was very similar to this:[code] Because I only had 10 questions it was fine to copy and paste the code a few times and rename the questions but now i am going to use this again but for a lot more questions (in the end there will be a couple of hundred) so i was wondering if any one knew a better way to do this? I was thinking maybe an array like 1 to hold the questions and 1 to hold the answers but i haven't worked much with arrays so I'm not sure how difficult this would be ?

View 1 Replies

Randomly Select The Questions W/ Answer In Database(mysql)?

Aug 28, 2011

I'm started my project and here is my code.

con.Close()
con.Open()
com.CommandText = "SELECT * from math.questions where number ORDER by rand() limit 1"

[code].....

View 1 Replies

Multiple Choice Quiz - Make Some Arrays Like Questions(20) And Answers(20)?

Mar 4, 2011

trying to make a Multiple Choice quiz, with 20 questions

-4 RadioButtons

-2 Label (Reading the Questions) and 1, keeping a score count

Do I wanna make some arrays like Questions(20) and Answers(20)

Dim ScoreCount as Integer

So I want it to be a little screen, and once you click a Radiobutton to choose answer, it will change the label to Question(2) so forth.. but I am unsure how to do this. I am fairly new to vb, im doing this to learn.How do I make it so everytime you click a radiobutton wether it's right or wrong, the next question and possible answers all change??

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

Buttons - Make Buttons That Chage Between [url] And [url] On Timer Code

Oct 25, 2011

So im creating a mail bomber here is the code

Imports System.Net.Mail
Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)

[CODE]...

Pretty simble but im trying to make buttons that chage between [URL] and [URL]on the timer code

Dim MyMailMessage As New MailMessage()
MyMailMessage.From = New MailAddress(TextBox1.Text)
MyMailMessage.To.Add(TextBox3.Text)

[CODE]...

View 9 Replies

File Streaming By Obtaining Questions From A Different File?

Nov 13, 2011

I'm trying to make a program in vb 2008 that is like a Quiz that reads questions from a different file and displays them in a label in the program. The program also reads 4 multiple choice into radio buttons. There is a next button that switches the answers and questions (reads them from a file) and displays them onto a label.

View 5 Replies

Flash Buttons In Place Of Normal Buttons

Aug 24, 2010

how can i use flash buttons in place of the normal vb.net buttons for more powerful interface in our desktop apps.

View 6 Replies

Using A Dialog Form With Two Buttons And Two Radio Buttons?

Jun 12, 2011

I'm using a dialog form with two buttons and two Radio buttons.I'm oppening this Dialog when a button is clicked on the parent form.My situattion is when the Dialog opens the code in the button event continues to execute, but I only want it to continue to execute only after a button from the dialog form have been clicked

Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
If multipleEXT = 2 Then
Extension.Show()

[code]....

View 3 Replies

VB 2008 How To Put New Buttons In Form

Jan 23, 2010

How can i put new buttons like these to windows form

View 1 Replies

VS 2008 - Yes / No Buttons In Messagebox

Jan 28, 2010

How do I make a messagebox with Yes No buttons and how do I give each button functions?

View 7 Replies

VS 2008 Buttons In Groupbox

Jul 12, 2009

I am having a problem doing select case inside my groupbox.I have a bunch of buttons in a groupbox, each button will do a same function only with a different values when clicked.For example, let's say i have 3 buttons in the groupbox for now.[code]The function will display a message in a textbox.My problem here is, the message shown in the textbox will always be Case "C", the last 1. I jumbled the order, anything that's last will appear instead which I think it's because of the For Each. I tried a do while loop but I do not have any conditions i can think of to use for it. I also tried using IFs instead of Select Case but not successful.

View 2 Replies

VS 2008 If Statement For Buttons

Mar 4, 2011

I am doing a bar cash register and I want to use a if statement to see if fosters button and number 1 on the number pad are both pressed then multiply constant by quantity number

View 1 Replies

VS 2008 Next & Back Buttons

Aug 31, 2010

I have a next and back button to switch in between my tabs. There are 7 tabs on the form. My problem is that if I am on Tab 1(the first tab) and I keep clicking the back button that it keeps subtracting the the number (next_CurrentIndex) and I got to press the next button that many times in order for it to go to the next tab. Example: Lets say I'm on tab 1(first tab) and i click the back button 5 times. I then have to click the next button 6 times in order for it to proceed to the next tab which would be tab 2. This happens if im on tab 7 and continue to hit next also. [code]

View 2 Replies

VS 2008 Using Images For Buttons

Sep 4, 2011

I want to use an image to some buttons . I know I can set the Image property and select an image file . My problem , however , has to do with the fact that the image in the file is always shown inside a gray contour . I mean the image itself (i.e. an exclamation mark) is shown correctly , but though around it there is nothing (not even a gray surface - just nothing) the image is displayed with gray color filing everything else . Back in VB6 I had no such problem ... I could simply select my image and it was shown correctly .

View 28 Replies

VS 2008 - Automatically Adding Buttons And Value

Jan 26, 2010

How do I code a program that when I enter an input like 5, will will automatically generate 5 buttons on a separate form and transfer the values of another input to the buttons?

View 2 Replies

VS 2008 - Buttons Like On / Off For Different Groups Of Textboxes

Jan 27, 2010

I have 5 columns of text boxes 5*5=25 textboxes and I want to put buttons that will stop every column like on off.

View 32 Replies

VS 2008 - Put An Animation Over State Of Buttons

Apr 14, 2009

How can i put an animation over state buttons...do i need a mouse_down and mouse_up?I'll try to make a GIF and import to buttons backgroundimage, but it does not work when i enter a mouse in buttons and hit it..

View 5 Replies

VS 2008 - Show Buttons In A Region?

Jul 26, 2010

I have a Rectangle (the class) that I'm using to define a region on a form and when the mouse enters that region it shows 2 buttons (which are on the form and within the bounds of the rectangle) and I would like the buttons to remain visible when the mouse is over either of the 2 buttons then when the mouse leaves the region or leaves the form they are set to invisible again. Here's the code I have so far:
[code]....

The problem is when the mouse enters the bounds of the button, the form's MouseLeave event fires and thus my buttons are hidden which means the user can't click either of them either.

View 6 Replies







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