Make A Continue Button Where The Players Progress Is Already Saved?
May 3, 2012
I'm planning on creating a game on visual basic where the player goes through multiple levels to be able to clock the game, sort of like in the game 'Dooooooors'. How do I make a continue button where the players progress is already saved? What is the code? Would I be able to make it so that the gamer can only access the levels that they have completed, they can't play the unlocked levels yet.
View 2 Replies
ADVERTISEMENT
Aug 20, 2009
Well I am trying to make a 2 player game but both players can't move at once unless they tap the keys (can't hold the key down or the other person can't move). How would I fix this as well as being able to go diagonally.Would this work?:Declare a bool value for each keypress below the public class thingy. Then use keyup to turn the bool off and keydown makes it go on. Then for the first player and second player I check if they are on and if they are than go to that direction...I think I would need a timer for that part but I dunno...
View 3 Replies
Jun 20, 2012
i want to make fake progress bar when i click on the button:
for i = 0 to Maximum
progressbar1.value = progressbar1.value + 1
next
but the progressbar.value = 100 Too fast
View 3 Replies
Aug 21, 2011
SOrry for long title i've forgotten how to do this so please may i have a code im new to VB 2008
View 3 Replies
Jun 9, 2011
I have got a very simple video player wrote using Visual Basic 2010. I have embedded the windows media player into the app without the controls. Right now it has simple play, pause and open buttons that work with wmp . how to make a slider that corresponds to the normal sliders in video Players?
View 3 Replies
Sep 17, 2009
How can i make a button that download a file using http show a progress bar about the downloading file state?
View 10 Replies
Oct 29, 2011
I have the following problem:
I've got 3 lines
If I click the "next" button
Line 1 shall be highlighted
Then I I click ""next" again
[Code].....
a for i = 1 to 3 to loop within the Button1_click makes i directly 3 of course so line 1 and 2 will not be highlighted.
I am not allowed to use a msgbox in between cause then it would be easy, cause I would wait until "OK" would be pressed...
How can I make this for i = 1 to 3 loop work and highlight the lines 1, 2 and 3, one by one after pressing the "Next" button?
View 7 Replies
Jun 5, 2011
I was thinking I could make a console application that would have a FileSystemWatcher - watching for a .BAT file being created in a folder - and when it sees that file it does a PROCESS.START on it.
View 3 Replies
Oct 13, 2009
I have this do while loop that I am having trouble with. I need to know how to make the loop continue to the next line after it has looped around once. So far I have it outputting like this.
$*$*$*$*$*$*$*$*
But what I really need it to do is output like this
$*$*$*$*$*$*$*$*
*$*$*$*$*$*$*$*$
$*$*$*$*$*$*$*$*
*$*$*$*$*$*$*$*$
$*$*$*$*$*$*$*$*
*$*$*$*$*$*$*$*$
$*$*$*$*$*$*$*$*
*$*$*$*$*$*$*$*$
View 14 Replies
Aug 6, 2009
I have managed to automate the following page: https://post.craigslist.org/atl/S/msg/none/x and even click the "Continue" button, but I noticed that my vb 2008 program is creating an infinite loop and tries to click "Continue" buttons on following pages. I only want my program to click the continue button once, fill out more data on the next page and then click another continue button on a later page. But I need the following code to end on the first page before I can continue coding for the following pages so that the web browser doesn't go crazy.Here is the code that I am using and not sure if this is called an infinite loop, but that is what it seems to be doing:
theElementCollection = WebBrowser1.Document.GetElementsByTagName("button")
For Each curElement As HtmlElement In theElementCollection
If curElement.GetAttribute("value").Equals("Continue") Then[code].......
View 6 Replies
Oct 13, 2010
I have code that just runs and runs, and I'd like it to stop and take a rest. I want execution to wait for a mouse event and then continue. I can't just put the code to be executed after the event directly into the Click handler, because many different sections of code need to stop and wait for the event. I'd like the code to stop, wait for the Click event, then continue. I tried the test code below, but it pretty much hangs the program during the Do Until loop; I can't even press Button2. [Code]
View 6 Replies
Apr 1, 2012
I was thinking I could make a console application that would have a FileSystemWatcher - watching for a .BAT file being created in a folder - and when it sees that file it does a PROCESS.START on it. But I'm seeing that a console app doesn't continue running.
Imports System.IO
Module awcWatcher
Sub Main()
Dim fsw As New FileSystemWatcher("D:ACS DesktopAWCeportingstaging")
fsw.NotifyFilter = NotifyFilters.FileName Or NotifyFilters.LastWrite
[Code] .....
How would I go about making this wait and then wait again and again and again?
View 9 Replies
Oct 5, 2011
This is what I have so far for the following scenario: I want to have it so that if a users clicks submit without checking a check box from one section it throws up a dialog box that makes the process loop and give them a chance to check a box. The process wont continue until at least one check box is checked. The same thing above goes for my radio buttons as well. Here's my code:
[Code]...
View 2 Replies
Feb 15, 2011
I'm writing a command-line application in .Net. The app itself is fairly simple, but it has to connect synchronously to a web-service, which in turn has to connect to a Oracle database, and those pieces are fond of taking their time.
Is there a straightforward way (without dividing my app exe in two) to continue executing but nonetheless yield execution to the command prompt?
It's Windows, so no "&". Also, I cannot use cmd.exe's "start" cmdlet.
View 4 Replies
May 1, 2011
I am looking to create simple application that means that when the 'Print Screen' button is pressed, the screenshot is not just sent to the clipboard but saved to the desktop in either JPEG or PNG format.The application will run at startup so that the 'new' print screen functionality is there but the interface of the app is opened manually.(the app interface includes simple options such as choose where file is saved.)
View 4 Replies
Dec 25, 2009
I have a datagridview with contacts on a form with clients. The underlying table for contacts has a field for Contactnumber. This is a identity column so its new number is generated by SQL Server.
I add a row and when I move to the next record on the form, the form �nd the information in the datagrid is saved to the database. So far, so good. The problem is: when I move back and try to delete that newly made row I get an error about concurrency.
It's logical actually, the record is saved, but the dataset of the datagrid doesn't yet know what the new contactnumber is. Apparently it's not information that it gets back automatically from SQL Server.
How can I make the dataset know the new identity of the row that is saved to the database? I use a simple da.Update(dsVerwijderingen, Tabelnaam) to save the changes to the database.
View 2 Replies
Jun 3, 2011
I am creating a Yahtzee game, the first thing I want my game to do when it loads is ask for the player/players name/names, so that there scores can be saved to a high scores table.I have decided to add a text file to my project as a start and I was thinking of using an array to add the score for the winner at the end of each game.I am stuggling on how to really start this though. I have come up with an idea, I could do with some advise as to weather my idea is any good.First thing, I need to add a text file and call it something like HighScores..Then I need to add a Windows Form to my project and add some controls for the user/users to fill in there name/names..How can I get my Windows Form for the players names to load when the application is started, do I use a form load event???
View 2 Replies
Jan 19, 2009
I have a datagridview checkbox column bound to an integer field. When I click the checkbox a value of 1 is saved to my database. But when I unclick it a blank is saved to the database. How can I make a 0 get saved when it is unclicked?
View 2 Replies
Mar 22, 2009
(vb 2008) how coud you make a picture saved on my computer go full screen and stay full screen for 30 seconds?
View 1 Replies
Nov 18, 2010
I wanted to make a program in which multiple files could be saved into one and then unpacked later. I tried reading and then rewriting the exact strings but it made the files corrupt. I was able to do it with bytes but I'm not sure how I add mutiple files together.
View 3 Replies
Sep 1, 2009
i am trying to make a search form . i want to display the data saved in sql server in a grid view upon hiting the search button . below is the code which i am using but i am getting an error > Conversion failed when converting the varchar value 'anees' to data type int.
[code]...
View 2 Replies
Dec 12, 2011
No matter what I've done, I can't make my application window the size and position saved in the registry. Below is the code at the end of my Form1_Load: [code]
View 1 Replies
Dec 29, 2011
I decided to take up the task of writing an app for Dungeons and Dragons. I play with my friends and I'm trying to make it a little bit easier.Before every round of combat players roll dice for Initiative. It basically tells the games manager who goes first and in what order the rest of the players go. When players roll for initiative they roll 20 sided dice. On Form1 I have a button that says "Initiative" which opens another window where the manager would type in each players values. Then I want the program to take those values and order the players from highest to lowest in a list on Form1. Kind of like...
John 32
Frank 29
Tom 25
Bob 15
Ralph 5
View 4 Replies
Feb 6, 2009
I've tried googling my question, but I can't seem to figure it out. At the moment, I just want to be able to make a button and it go to a next page.I know when it comes ot options and settings, I'll have to have it store the variables until the final page, I just can't seem to figure out how to do this.
View 6 Replies
Apr 13, 2009
I am creating a simple button based rpg and was wondering if someone could help me with 3 things how to hold information within the game until the player save's the game, Saving the game, and Loading the game.I want the saved games to be saved onto a encryted file like .db or .dat file..
View 3 Replies
Jun 7, 2012
First of all I'm trying to create a validator that checks to see that if both players have entered a nickname. If they don't then it should automatically close the form but instead the application hangs. If the first player uses three tries then it "should" automatically close. Here it is:
Sub getNickNames(ByVal Players() As String)
erCount)
'Force Select Username. If More Than 3 Attempts Are Made The Game Will Exit To The Main Menu
[code]....
View 3 Replies
Jul 1, 2010
im making a game that reads text files off of an ftp server. everything is working great. except for the fact that i cant read more then the first line of the players text file. how would i use substring to, for example, look for 'inventory' and get all the info under 'inventory' and above the next title?
View 1 Replies
Apr 25, 2009
simple way of attaching a progress bar to the tasks of a button.When I press a button, several tasks will commence and I want a progress bar to show it's... well... progress.
View 5 Replies
Jun 23, 2010
Hey everyone I need some help, I created a bat/vbs (created two just incase) file that takes images that users have scan and re-names them places them into differnet folder and zips them so they can be uploaded that night.
When the user done scanning they click on that bat/vbs i created so it can do everything i stated above just it just opens a dos propmt or nothing happins to viewers eyes..
I want to create something in Visual Studio that calls that bat/vbs and shows them a progress bar so they know how long its going to take instead of them looking at a black DOS promptI do have visual studio 2010 and i am not really know to much about programming i start reading some books but im still a noob =)
Dominick
View 1 Replies
Oct 28, 2009
i`m trying to use a progress bar while i click a button to start my web cam. It needs about 2-3 seconds to display the web cam capture image in my picture box. When i use the following code the progress bar starts only when the capture image is displayed in my picture box, it waits those seconds to start. What can i do about that problem?
[Code]....
View 7 Replies