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
ADVERTISEMENT
May 8, 2009
I am a student working on the venerable "Hangman" project. We were tasked to create a hangman game that would get a random word from one of three sources either by file, by array, or by database file. I have managed to get a random word to import from all three but I run into a problem once I start to play the game. The program seems to run into an infitinite loop as soon as you enter a letter or it automatically dispays character entered and gives a game over. [code]............
View 39 Replies
Oct 19, 2008
I'm working on a design project where I have to use a Graphical User Interface that contains a drag and drop form. It consists of having a window dropped on a wall. Both of them are images to scale. I would like to know what kind of code I would have to use to show the x and y coordinates of one of the points of my window when dragged so when I drop it, I'm dropping in it on the desired coordinate of the wall.
View 2 Replies
Jan 27, 2011
I need directions on which code to use to load picture for each wrong guess.
View 5 Replies
Dec 19, 2011
i'm trying to make a hangman game yet i'm getting errors in these parts:
System.Text.RegularExpressions.Regex.ism...rgx, that it is not part of system .text ( more than
one case of this error) and also the rgx bit is claiming to need a '<' for an xml tag.those errors
and quickly run it on their vb? this is because i do not have vb on my computer.[code...]
View 1 Replies
Jan 1, 2009
my new game im planning for is a hangman game. I was thinking along the lines of : having a keybaord on the bottom of the form. Then having parts of the "MAN" be invisible and when a wrong letter is incorrectly pressed a peice becaomes visible! Im having trouble with how to set words. (i want more than 1 word so that it can be played multiple times).
View 1 Replies
May 14, 2009
got errors in hangman
View 3 Replies
Dec 15, 2011
I have this progamm and i want to add points when a letter is found 10 points PLZ HELP ME! i also want to make it for two players
Module Module1
Public zoes As Byte
Sub Main ()
[CODE]...
View 2 Replies
Oct 20, 2011
my teacher assigns me to modify the program hangman game that allow a player to enter a word that contains any letters up to 10 letters.That assignment is from my textbook, Programming with MS Visual Basic 2010 by Diane Zak.[code]Now here's the problem I'm having trouble with. I don't know if my substrings is wrong or right, but when I type a word, the problem crashes and gives me the error of this.and another problem I'm having trouble with is how can I have dashes to match with the length of words? For example, if I type "game", it'll display "----" in the exe program. If I type "cat", it'll display "---" in the exe program as well.
View 14 Replies
Jul 24, 2010
want to make my program look nicer , but i dont exactly know how should i make it's visual for example making a menu or else
View 2 Replies
Mar 31, 2009
Im using Visual Basic 2008.Okay I got all the design, and everything set up, even the hangman body parts coming on the screen and stuff. So my problem is creating the BLANKS, the underscores "_", and replacing them with a letter...
I was thinking creating Lables which i have no idea how to dynamically. Then giving each label name the letters they belong to, and everytime the user gets the rigth letter they get replaced.
View 3 Replies
Oct 8, 2010
What is the best way to write a GUI for C++?
View 1 Replies
Sep 17, 2011
i want the user interface to be kinda similar to the jQuery UI. This means themed buttons and windows(preferabely the ones form jQuery UI) Also, i'm looking for nice sliding and morphing windows.
View 3 Replies
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
Jun 1, 2009
I am making a hangman style game in VB 2008 Express. I am a beginner and instead of making any graphic related content (i.e. the hang man), I am using a 3 strike system. So far, I am just about finished. Only problem is whenever I choose a letter that is incorrect, it adds 1 to the strike label. The problem is, the second time I choose an incorrect letter, the "1" does not change to 2! The line is as fallowed:
strikelbl.Text = +1
View 3 Replies
Aug 20, 2010
I have a legacy application that has an interactive graphical user interface, but also periodically checks for files in a directory and reacts to the files. I want to launch the application from a VB program, but not see the GUI (i.e., just let the file interface do it's thing). I really don't want to see the application running on the desktop at all (e.g., no windows, nothing on taskbar), the only evidence would be if I checked task manager I'd see it running.
Obviously this app would be ideally a service, but that's not where we are and I can't change it so I'm trying to simply not see the GUI.
I've seen the ProcessStartInfo.CreateNoWindow and WindowStyle = hidden flags but they don't hide the GUI of the legacy app.
again launch the legacy app (actually an unmanaged C++/MFC app) from a VB managed admin app.
View 4 Replies
Feb 15, 2012
I'm trying to hone up on my (beginner) coding skills & I would prefer that the the 'Designer coding window', not the 'Design window', wouldn't interfere with these studies. Sometimes it's there & sometimes it's not. I don't understand it at this point & would prefer it wasn't there. All I need is the 'Design window' & the 'regular coding window'.
View 2 Replies
Nov 30, 2008
Basically i am creating a Hangman program using VB 2008 Express edition and need some help.I would like some help on when a user is entering a letter for the word how can i make it so for example if the target word is "MAX" and they enter "M" i would like the lblstatus to update as "M--" obviously i would want it to be able to do it with all 3 letters.
View 2 Replies
Jun 4, 2010
I'm doing a project and want to do a graphical interface using V. Studio 2010. I want to use VB.NET as a programming language.
- Do I have to add any software to define VB.net?
- What is the function that reads the data from the serial port?
- If I want to receive more than one type of data, and I want to put/read them in separate text boxes, what is the function to filter the incoming data?
View 4 Replies
Jul 29, 2009
i've created a hangman game (Fully working) but since you can only "play" with one phrase (10 letters) it gets boring fast. Basic the current game works by on form load i define the slots (10 string which each hold a letter) and give them there letter. then the user type in a text box and if the textbox = any of the slots then the lbl repasenting that slots changes its text from "_" to the letter.
Anyway what I would like the button to do is when the user presses the start button a random number is generated. The program then looks into a textfile and based on which number is generated it takes a certain line (10 characters per line in a phrase) , moves them into the slots and the game starts. Is that possible to code or it too complicated. The textfile will be in the applications folder (words.txt).
View 6 Replies
Apr 3, 2011
2. Display Form1.vb in design view.
3. List the controls by the Name property and the control names, if any, that are not descriptive.
4. Change the Text property of the form to "Hangman."
5. Change the FormBorderStyle property to Fixed3D.
6. Explain why the form should not be resizable.
7. Change the Font of lblWord to Size 12 Bold.
8. Reposition lblWord so that its left edge is aligned with the left edge of the PictureBox picBody (the box in the center of the form).
9. Add code to the btnExit_Click event procedure to close the form, and exit the application by calling the form's Close method.
10. Add code to the btnNew_Click event procedure to:
[Code]...
View 17 Replies
Jan 12, 2010
how to create a user interface in a game such as the application XFire using Visual Basic?
View 3 Replies
Jan 21, 2011
Building the hangman on hangman and also making a password box. The password box is less important. I can probably figure it out with time.
[code]...
View 5 Replies
May 10, 2009
building the hangman on hangman and also making a password box. The password box is less important. I can probably figure it out with time. The hangman on the other hand, not so much.so far i have this under cmdA:
For counter = 0 To Len(word) - 1
If word(counter) = "a" Then secret = Mid(secret, 1, counter) + "a" + Mid(secret, counter + 2)
[code]......
View 5 Replies
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
Aug 7, 2008
i am wanting to write a program to capture video from in game, the thing is that the video has to be small enough to then broadcast online simultaneously with a three minute delay, i have no idea where to start but am hoping to use VB,
View 6 Replies
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
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
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
Dec 23, 2009
i have few questions about the user interface when working with a VS setup project
1. i have added a Checkboxes dialog, i have 3 checkboxes they are used to select upon 3 tools to be installed, so during the progress of the instilation, how should i let the project know which of the 3 tools was selected ? (i hope i was clear)
2. a bit of silly question - is it possible to edit something in a dialog ? like in my case in the "finished" dialog my customer didnt like the the end button is named "close" and he wants it to be named "Finish"
finally, this is an extra non programing but it would be good if i was able to find an answere :P, when i plug a USB in the computer it opens the autoplay, and i have my instilation file in the USB (it will be distributed on a USB rather than a CD), so i want to add to the autoplay a button that runs the instilation file
View 1 Replies