Cannot Get Guessing Program To Work?
Feb 19, 2011
Option Explicit On
Option Strict On
Option Infer Off
Public Class mainForm
Private Guess As Integer
Private Number As Integer
Private Sub exitBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles exitBtn.Click
Me.Close()
[Code]...
what is wrong with this code, if possible please give me some directions or navigations so that I will try to think and fix my issue due to the fact that i'm a student and trying to do an assignment.
View 6 Replies
ADVERTISEMENT
Oct 24, 2011
I have written this code for my class. I just can't figure out what is wrong with it. What the program does is set a random number in memory then a guessing box input tells if it is too high or too low or correct. I set it up so the min and max numbers can be changed. What am I doing wrong. You don't even have to tell me the code I just want to get it working
Public Class Form1
Dim randomObject As New Random()
Dim random As Integer
[CODE]...
View 3 Replies
Nov 18, 2008
How would you make a text box that guessed what you were about to type?...Don't understand what I mean?...for example, look at the Google search box...when you start typing stuff there, previous searches pops up underneath right? How would you make one of those? Would you need a text box to type things in and then a list box that pops up? All the info that pops up is in a database.
View 2 Replies
Dec 15, 2009
Looking for a bit of help here. I know my If...Then...ElseIf statement is somehow off, but not sure how. Could someone point me in the right direction? I know I am almost there but need a nudge in the right direction.
[Code]...
View 6 Replies
Mar 28, 2012
i am trying to create computer guessing game for my college. computer guess my number like i have random number in my head for example 45 then the first computer guess is 50 then i tell the computer that is too high then the next guess is 25 then i click low then it goes on i cant figure out how to make it run it like when i click on high it supose to get the number low then when i click on low then it suspose to go low but it doesnt.
Public Class frmMain
Dim IntLowestNum As Integer = 1
Dim intHighestNum As Integer = 100
Dim Count As Integer = 0
[code]....
View 2 Replies
May 29, 2009
im making a random number guessing game type thing, i have the main thing done, but I was just wondering, how could I get it to show the integer rndnumber in the message box that comes up? I think its something like &= or something, but I havn't even been using VB for a week, so im can't figure it out. Here is my script:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If RadioButton1.Checked = True Then[code]......
View 7 Replies
Jan 8, 2012
I'm building a VB(2010) program to create the graphics for my laserprojector.The program works when I debug it in VB, but when I run the EXE program in the release directory, it doesn't work. The problem in the EXE program is theat I can't draw/view graphics in the picturebox..I coppied my whole program to a new VB project, but I'm having the same problem...In the original project, where the program works, there are no warnings or errors.
View 3 Replies
Apr 16, 2009
I'm creating a number guessing game. [Code] Textbox1.text refers to the answer input by player. There are two labels for displaying the range of the answer within. Label1 and Label2 refer to the lower limit and higher limit respectively. If the input value is smaller than the answer, the label1 will show the number that input into texybox1. If the input value is larger than the answer, then vice-versa. However, the program doesn't work as my expectation. Once I input the answer, the MsgBox doesn't appear. When the input value is smaller than the answer, the label1 doesn't show the input value.
View 15 Replies
Sep 30, 2010
I am really confused! My program doesn't work if I don't have Visual Studio here in my PC. To test it I have uninstalled Visual Studio. But my program doesn't work though Flash Player is present there (I have used Flash animation in the first form).
To be more sure about it I have installed Flash. But it's not working! That means the Flash animation file (.swf) is not making a problem! It needs support from Visual Studio to start. Doesn't it mean that some files are not attached with a setup file as a result it needs Visual Studio to run? Let me tell you how I create a setup file of my program.
CODE:
When I click on the icon of my program it shows the error message
CODE:
Reporting details: This error report includes information regarding the condition of WindowsApplication1. When the problem occurred the operating system version and computer hardware is use; your Digital Product ID, which could be used to identify your license; and the Internet Protocol(IP) anddress of your computer.
View 1 Replies
Nov 9, 2009
I am attempting to create a game in Visual Studio 2008 that allows a user 10 attempts to guess a random number between 1 and 50. I have a label box in which I would like to display the remaining guesses as they decrement. The code so far appears below.
My two (I am sure very basic) questions are:
1. How would I pass the random integer generated through the Generate Integer function to the AmIRight button's click function? I was trying to decrement the counter each time the "Am I Right " button is pressed.
2. I would also like to evaluate each "guess" when the "Am I right button is pressed. Is it possible to nest a Select Case statement in a For Next Loop?
vb.net Option Explicit OnOption Strict OnOption Infer Off Public Class frmMain Private Sub btnExit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExit.Click Me.Close() End Sub Private Sub txtGuess_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles
[CODE]...
View 3 Replies
Jul 1, 2009
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim antalpersoner
[code].....
View 12 Replies
Aug 16, 2009
I'm stuck in getting the middle name work in my program if you guys can help me. So I'm suposed to break up fullname entered by the user into>firstname= middlename= lastname= I've done first and last name but I get stuck on the middle name. So there is my code.
[Code]...
View 16 Replies
Jan 13, 2009
I got a program which needs to be used while it is minimized but don't know how to do this. I would control it by keyboard, my keys only work when the form gets focus.
View 1 Replies
Mar 12, 2009
how can i program add-in to work in solidworks
View 2 Replies
Aug 20, 2009
My program has Framework 3.5, and my friends' computers have same version of framework. But the problem is that my program says for him
[Code]...
View 11 Replies
Aug 20, 2009
I am using Vb.net 2008.My PC has vista 64bit. My program has Framework 3.5, and my friends' computers have same version of framework. But the problem is that my program says for him......It is look like this[URL] and some of them say like this picture...[URL] Actually, some friends said that you have to register the RealAudioObject ... and ... IWshRuntimeLibrary .... If this is a problem, how can I make this by code because I do not like the slow way...
View 4 Replies
Jan 7, 2011
I found a vb.net code, you can drap and drop the image files to picuture box, i have tested on Windows 7 OS, double-clicked the exe file, it worked well, but when i ran this exe as administrator, it did not work, why? i want to run as administrator. The code is below:
Imports System.Text
Public Class Form1
Inherits System.Windows.Forms.Form
Implements IMessageFilter
[code]....
View 7 Replies
Nov 13, 2011
I am trying to build a program that monitors how other programs are being used and as part of it I need to figure out if it is possible to work out using VB code what window, program or process the user is currently using or Focused on.
View 1 Replies
Nov 13, 2010
The Windows > New Window command still does not work in Visual Studio 2010.
This is SO 20th century having to edit only a single window at a time, only having that split screen.
View 8 Replies
Apr 11, 2012
I'm not quite sure why, but this program doesnt work as intended. It's kind of difficult to explain but if you tried it, it doesn't work properly.
Private Sub btnApply_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnApply.Click
'clears the changes box before going through if statements
Me.txtChange.Text = ""
[CODE]...
View 3 Replies
Jul 19, 2011
I included (as its a property compnay) photos, MS word docs and exel docs by creating links such as ths one:
Private
Sub
Timer1_Tick(sender As
[code]....
when i publish the program and export it to another computer these links fail and the pgm crashes.
View 1 Replies
Feb 3, 2011
I need to write a program that uses 'try' in it
the program can only accept a number if its bigger than 3 otherwise it would give a error message and return to the start of the [code]...
View 16 Replies
Jul 11, 2011
I completed my VB project a while back and it worked great in XP.Now the same program is needed on computers that have Win7 installed.The program installs without any problems, but when I open it, it gives me an error saying the database is not accessible.
I used Visual Studio 2008 and SQL Compact to design the project.The database was included in the project and in the installation file. I also checked the Programs folder and the database was installed correctly into the correct path.What is the problem with my programs compatibility with Windows 7?
View 14 Replies
Apr 9, 2009
I am writing a program, and it worked just fine, then I changed the icon on the program and I get an error when I try to run the program. Attached is the window that I get when I debug the program.
View 3 Replies
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
Mar 12, 2011
I want my program to work for a certain period of time, may be one month.. two month..
View 1 Replies
Mar 23, 2012
im doing a program where you type a teams name into a text box and it displays each player on the team and there batting average. but i also have another program within the form on a different tab and the program on the first tab works fine but when i swith to the second tab my program does not work. I know the code is right becasue i made it on its own seperate form first and it works correctly but when i put it on the second tab page of my other form it doesn't run.
[Code]...
View 1 Replies
Mar 22, 2010
i have 2 exe of my program and one of them works extactly and the other one not..the reason could be that i use 3.5 versione of framework and the other pc hasn't that version??
View 3 Replies
Jan 15, 2012
I am using a vb 2005 and mySql as my database. I already created my project but it seems like when i edit my program.. it doesnt apply. What might be the problem? Is the vb.net application, MySql or the OS?
View 2 Replies
Aug 13, 2010
I've automated some things on my computer with some mousecommands. This works perfectly. However though when I'm away for a couple of hours and I've got my program running (which is needed) the screensaver won't kick in due to the mouse movements. Is there any way to bypass this? So that a black screen is showed but the program still does its work.
View 1 Replies