Make A Slot Machine Program?

Dec 9, 2011

I'm trying to make a slot machine program. This procedure that I'm trying to do will assign a name to 3 randomly generated numbers. For some reason I'm getting a conversion error saying that it cant convert the integer to a string. I tried cstr() as well but the problem persisted

[Code]...

View 2 Replies


ADVERTISEMENT

Make A Slot Machine In .net?

Apr 20, 2012

I have to build a slot machine that rotates 3 pictures, and when the player wins a Button pops up going "You've Won, or You've Lost" And If The player won the First form closes with out the program terminating.

View 3 Replies

Make A Jackpot Appear For Slot Machine

May 28, 2012

im doing an assignment and need help to make a jackpot appear for my slot machine. My code so far is for everything excluding jackpot.[code]

View 5 Replies

Slot Machine Game Error

Jun 2, 2009

I'm new to visual basic 5 and here. I'm attempting to make a slot machine type of game. So far this is the code that i am using (below), the problem i am having is that nothing is showing up in the labels. And the try again message in a message box just keeps appearing when i start to debug [code]...

View 8 Replies

Forms :: Slot Machine Payout Code?

Sep 26, 2009

I have made the slot machine. It all works good except, I have encounted one problem though. When you get two of the same images or all three, you don't win anything.i have tried some code. This code has no erros what so ever, but it doesnt seem to work.i have made a new private sub called get payout.( it doesnt make anything appear on the page).Code for the payout i have used is below(doesnt come up with erros though)[code]

View 5 Replies

How To Create Slot Machine Game Which Operates On Credits

Feb 23, 2010

I've got to create a slot machine game which operates on credits, I have three buttons and a textbox. One textbox is to add single credits, the second to add 5 credits, and the third adds 10 credits. They all need to be added up to give a 'total' & " credits"

Public Class frmFruitMachine
Dim OneCredit As Integer
Dim FiveCredit As Integer
Dim TenCredit As Integer
Private Sub btnOneCreditit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOneCreditit.Click
[Code] .....

View 4 Replies

Slot Machine In Winning System Not Properly Working

Jun 23, 2012

I am coding myself a Visual Basic.Net 2005 Slot Machine program. I've been hard at work on this for about a week and half now. From what I have with it it works and all. However there are so many annoying errors with the program.

LIST: - I am not winning when I should be. My winning conditions is set when you get 3 of the same picture you are to be awarded with some credits. It works but sometimes when it does land on 3 of the same pictures it still says that I've lost. This is the main problem and I am about to pull my hair out about this - The image with the lowest value is showing up the least and the picture with the most value is showing up more frequent? I don't want to change them around to fix that.

[Code]...

View 6 Replies

Game Programming :: Create A Slot Machine Application : User Movable Picture?

May 1, 2010

I am trying to create a slot machine application. I wanted to make a handle like gui so here is what I have:

[URL]

What I want is to be able to let the user drag the red button till a certain point and when they let go of the mouse click the button moves back slowly to the top.Here is what I have so far (I tried my best) :

Private Sub picBall_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picBall.Click
tmrOne.Enabled = True
tmrTwo.Enabled = True

[code].....

View 3 Replies

Make Installation Wizard So That Program Would Work On Client Machine

Jul 13, 2009

how do i make an installation wizard so that the program would work on the client machine ( pc or laptop not server ) so that the client doesn't need to download .net framework separetly ?

View 3 Replies

Closing Machine After Program Has Run

Feb 3, 2010

is there "rules" as to how to close programs writting in vb.net(2008)? I've migrated to dot net from vb6 and have rewritten some of my programs in the new language, but I've discovered a problem, since using the new programs if you try and close the machine down (Windows XP) the pc just hangs until I use the task manager and kill my programs.

View 1 Replies

Program Won't Run On Identical Machine?

Apr 17, 2010

I made a program with Visual Studio Express 2008, compiled for .Net Framework 3.5

I transferred the .exe and the other 2 files to my brothers laptop who also uses Windows 7, .Net Framework 3.5.

Every time I run the file it says "Windows Application has stopped working..."

However, I run it fine on my PC and it is also Windows 7, .Net Framework 3.5

Can anyone else think of a reason the program won't work on my brothers laptop?

View 1 Replies

Make Connection Between Attendance Machine And Database?

Mar 21, 2010

i want make a attandance software but i need coding for make connection between attandance machine and databass. so i can connect to machine and downloadd attandace logs.

View 1 Replies

Debug Program On A Windows 7 Machine?

Oct 5, 2011

I am trying debug my program on a Windows 7 machine. My program reads a txt file using TextFieldParser

I get an error message when I try to open a file

Could not find file C:UsersBillDesktopprogram name TextFieldParserinDebugFileName.txt.ReadColumns

Code

Dim safeFileName As String = IO.Path.GetFileName(Me.OpenFileDialog1.FileName)
Using myReader As New Microsoft.VisualBasic.FileIO.TextFieldParser(safeFileName)

It doesnt get past the second line, which tells me there is something wrong with the way i am getting the file??

I am not getting the location of the file just the file name

View 27 Replies

Lightswitch Program Runs On One Machine But Not Other

Nov 10, 2011

I loaded a Lightswitch program on an XP machine and after load all of the updates it runs fine. I tried to load it on another XP machine with all of the updates loaded and it looks like it installs and it shows up under programs but it looks like it starts to run but then nothing happens, there are no new processes running.

View 1 Replies

Program Does Not Work On A Vista Machine

Jan 15, 2010

I made an application to give to my friends as practice for my learning, so the app works fine with XP but not on a Vista 64 bit machine. Will the app need re-coding? The app is used as a game mod, so it writes to process.

View 2 Replies

VB Program Fails To Run On Specific Machine?

Mar 12, 2012

Frustration has officially set in. This is my first post here, and to be very honest, I'll admit that I'm a newbie VB programmer as well. I guess that's why I'm posting here, in hopes you super-porgrammer types might be able to help.

I've written a smallish VB program with 2010 express... the code uses some text files to gather various lists of numbers ( as part of a manufacturing Bill of Material ) that assiciate to PDF files of the same name. The intent was simply to view and print the gathered existing PDF files.

I have the program mostly working the way I want ( at home ), but when I bring it to work, it fails to open.

My home PC is a 32Bit Windows Vista Machine with Adobe 10.1 viewer installed.My Work PC is a 64 Bit Windows 7 Machine also with Adobe 10.1. I've sent the .sln and code to a buddy who is also running a 64bit Win 7 machine very similar to what I have... he is able to run the program. I've sent the same thing to my work pc and tried to run it. I get some crazy HRESULT error I can't make heads or tails out of... remember I'm a newbie.

I will happily post code if you guys are interested, but I believe that it isn't code related. What kind of things MIGHT i try to look for on my work pc that would cause this simple program Not to function? I've brought other programs I've written to work without problem. But this one has me stumped.

Other things I've tried:
1) uninstall and re-install Adobe... ( no change )
2) written a super small adobe viewer program at work... ( works )
3) tried to comple as "any CPU", "x86", and "x64"... ( does not work )
4) bring .sln & code files to compile and run at work... ( does not work, HRESULT err )

View 4 Replies

Make An Application That Can Control The Processes And The Services In A Remote Machine?

Feb 17, 2012

I am a new member here and a new user of VB.Net.So, I would like to know how to make an application that can control the processes and the services in a remote machine.

View 4 Replies

VS 2008 - Registry - App To Create A Reg Key - Make My Application Start Up On Any Machine ?

Feb 3, 2010

Ive got my application running at startup on my computer. But how can i make my application start up on any machine ? Do i need my app to create a reg key ? Also what path do i use for it to start up on other machines ?

Heres the code im using to start it up on my machine.

Private Sub Form1_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing
If CheckBox1.Checked = True Then

[CODE]...

View 10 Replies

Program Express Does Not Run On A Machine With Windows XP Dutch Version

Jun 5, 2009

I wrote a program using VB 2005 Express edition using a computer with windows xp us edition. the program run fine on al machines here in San Diego but it gets a .net framework error on a computer in the Netherlands with a windows Xp Dutch edition.

View 14 Replies

Running 32bit Compiled Program/DLL On 64bit Machine?

May 20, 2011

I have some programs written in VB2010 using functions from a DLL. I have compiled and run these programs on a 32bit XP computer and a 32bit Win7 computer and have had no problems accessing the DLL.I have published an installation of these programs and tried running the install on a 64bit Win7 machine and the installation is performed correctly. It installs the programs and copies the required DLL into the same folder. the problem is that whenever I run the software and try to access the DLL I get errors.

The error says something like:

An unhandled exception has occurred in your application. An attempt was made to load a program with an incorrect format. (Exception from HRESULT:0x8007000B)

If I click past it the software runs and all of the forms are loaded properly, but anytime in the software if I try to access the DLL I get the same error.I am declaring functions in the DLL like this:

Public Declare Function OpenDriver Lib "OP815M.DLL" (ByVal handle_Renamed As Integer) As Integer

I have also tried placing the DLL in the system32 directory and also the sysWOW64 directory and that did not help as well.I do recall that hardware drivers need to be properly signed and pass the Microsoft Logo testing. Must I get the DLLs I am using properly signed?

Edit: Also it might be fair to mention that I have used the DLL with another program written in C, which would run in the DOS command line in Windows and it correctly accesses the DLL on a 64bit machine, but just when run from the DOS command line in windows.

View 4 Replies

UDPClient Class - Tie The Program To A Specific IP On The Local Machine?

Nov 28, 2011

Say a machine has two seperate IP's. I am running a little test program that connects to an outside piece of hardware that has it's own IP. I receive data from that hardware. I want the same little program assigned to the two seperate IPs on my local machine to get the same data from the hardware. How can this be done?I am receiving data just fine but I am not seeing how to tie the program to a specific IP on the local machine. As soon as I run another instance of my program, not data is received on the second instance.For example: I have a program running on a machine. I want two instances of that program, each on it's own ip

Instance 1: 192.168.1.240

Instance 2: 192.168.1.241

I want both instances to listen for data coming from 192.168.1.50

This is a generic example of what needs to happen. I need to know how to define the local IP's the UDPClient is running on.

View 4 Replies

VS 2008 - How To Deploy A SQL Server Database Program To A Machine

Mar 22, 2010

how do I deploy a SQL server database program to a machine thats I don't know the name of the machine. tried using "server (local)" but still.

View 6 Replies

Show The Objects Based On The Payout And The Prize Money For Paylines In The Slot Game?

Oct 15, 2010

I am doing a internet cafe sweepstakes slot game in vb.net. I want to show the objects based on the payout and the prize money for paylines in the slot game. I tried using MT algorithem but it basically random number based. the final output should not be radom.

[code]...

View 1 Replies

Chat Program - Target Machine Actively Refused Connection

Jun 4, 2011

How to make a chat program. Well I just copied code in and the program worked. I can send a message to the server and it sends it back just fine. But I can only send a message once. If I try to send another message I get an error and it says this "A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll" then it "No connection could be made because the target machine actively refused it 127.0.0.1:500".
Here is the link to the tutorial and code: [URL]

View 1 Replies

Execute A Program On A Remote Machine - Psexec Doesn't Work

Jan 29, 2009

I'm trying to execute a program on a remote machine using this code

Dim objProcess As New System.Diagnostics.Process
objProcess.StartInfo.FileName = "cmd.exe"
objProcess.StartInfo.Arguments = " /c PSExec /accepteula \NTAPPMTMIGL01 -u $AdminUsrLocal -p tjdsi44 c:winntMicrosoft.NETFrameworkv2.0.50727gacutil.exe"

[code]....

If I use it, it works since I'm an admin but if someone else use it, I got "The system cannot find the file specified."Is there any other program I can use that can impersonate, I've already tried xcmd.exe but it doesm't work either.

View 2 Replies

Cannot Access The Database From Server Machine To Client Machine Using .net 3.5?

Dec 9, 2010

I develop an application using vb.net.application will run on client server architecture.when we try to execute the program in client side then it will give me an error which is related to sqlclientexception.how can i handle this situation.i used vb.net 3.5 as front end and sql server 2000 as back end.i have done total coding with system.data.sqlclient namespace.

View 6 Replies

.Net Software Behaves Differently From Machine To Machine?

Dec 21, 2010

I've inherited a lot of custom made software for an office, and, while managing it, I've found it performs differently from machine to machine.I mean, some controls get painted in weird ways in some machines but well in another, or just work differently, like in some machines clicking something selects it, and in the next machine clicking the same thing makes it editable.I suspect, o course, of the myriad of DLL the software loads

View 2 Replies

Blocking A Particular Machine From Accessing A Machine On LAN?

Jan 21, 2008

I want to block a perticular machine from accessing my machine..Both the machines are in LAN..I dont want a perticular machine to access my computer How can i achieve this...I want to do this using VB.NetAny idea....

View 9 Replies

Cannot Find A Way To Make A Program That Write Make A Shortcut In Start Menu For All Users

Jun 6, 2009

I cannot find a way to make a program that I write make a shortcut in the start menu for all users.My final goal is to make an MSI and deploy it in group policy to all users on a computers OU. Is this possible?

View 5 Replies

VS 2008 Make Button Open A Program And Make It Windows Size?

Aug 23, 2009

How do i make my button open a program and make it windows size?

View 6 Replies







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