VB 2008 Integer - (.exe) Execution File Programming
May 31, 2009
I am using Visual Basic 2008 and currently having a coding problems. I have coded a simple game in which I have energy that I can upgrade by 1 point on each click of a button. And so, when i start my program, it always loops this same coding without the need of another click on the button. It keeps looping until it gets to 999 then it stops sending the messagebox and lets me continue using my program. This is an (.exe) execution file programming.
Coding :
Private
Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[CODE]...
View 4 Replies
ADVERTISEMENT
Jul 25, 2009
im wanting to make a game that will teach users about server security systems. By programing a game that will act like you are in the real field or in real life right now how malicious users would go about hacking a server that way you can secure your server in the future.
But what im having trouble with is getting the whole setup its basically going to be a text based game. on startup i have a warning message pop saying this software is not meant for illegal use and upon hitting ok the other software pops up with a logo and to the left is options
Shell, Hack Tools, Shop, E-Mail, CPU Now what i want to do is when the user clicks Shell a somewhat shell like system would pop up giving you base line stories to do. But how would i go about making the user commands for example if user typed in
[code...]
So the main question here is how would i get the commands to work? And then lets say your first objective is to find a random .txt file somewhere in the server . User would have to type
[code...]
View 3 Replies
Dec 16, 2010
how to get rid of this prompt for three files I'm executing through my VB code? Here is the code that is calling the three files to run after they've been copied locally to the workstation.[code]
View 1 Replies
Jun 12, 2011
my function is to adjust a timer interval according to a integer variable.
Original code (works fine):
Code:
Dim UpdateSnakeSpeed
Select Case UpdateSnakeSpeed
Case currentscore > 199
[Code]....
This is the code I'm using right now. (works fine and is more logically correct than the above case statement. I have chosen to go with if .. end if statements over case, as I do not have a full understanding of what the variable SnakeUpdatespeed is doing in the Select case statement. If someone explains then I'll consider it. Also I know case statments are only meant to be used for 1 option selections, however I'm amazed that it still works in case. Atm it's going to be if end if. Now I'm trying to get the for next loop going with this (if it's logically possible). that's what i'm aiming overall out of this thread. To make a convenient loop.
View 3 Replies
Feb 25, 2008
I am using VB2008 and have an integer value.How do I export it to an exisitng Excel file, I want to put it in a specific cell.Also, I may have the need to do this for an array in which I would like to put in in consecutive cell in Excel.
View 2 Replies
Jan 7, 2011
I'm reading a text file that has a single line with the number 70. I want to convert this to a number (decimal or Integer). The following returns 7 - what am I doing wrong? [code...]
View 6 Replies
Jan 28, 2011
I have this commandline in a cmd file "C:MentorGraphics7.9EESDD_HOMEcommonwin32inasc_out.exe" "-PROJECT=D:VeribestData55250u0555250u05.prj" "-OUT=D:VeribestData55250u0555250u05.inp" "*(*)"
And this peace of code
Dim program As New Process()
Try
program.StartInfo.FileName = Chr(34) & PrjSets.ProjPath & "ascii.cmd" & Chr(34)
[Code]....
And it generates no output If I double click on the command file it generates output
View 1 Replies
Apr 29, 2010
I have a form and a class module.
the application plays a sound file from using a windows media player control on the form. it seems silly to me that you need to have a hidden visual control on a form rather than just using code, but that's another gripe.
previously, the code (in the form module) was :
Private Sub Something()
Call PlayMusic("filepath/filename.mp3")
End Sub
[Code].....
View 3 Replies
Jun 9, 2009
Based on the code below..How do I stop the execution of the codes at a certain lines if a certain condition is fulfilled? Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code]...
View 2 Replies
Aug 10, 2009
i am trying to complete a project. My task is to read large TXT files (300 files, 2.2 GB in total) read the customers inside, perform some data calculation and write each customer data to a separate txt file.
I made a code in VB6, it runs fine, however it takes 8 days to run on a quadcore processor, utilizing 20-30% of the CPU. Now I upgraded the code and am running on VB.NET 2008, the latest version. The speed still remains the same, and the CPU usage is also about the same.
Anyway I can make this process faster. I have a quadcore PC with 8GB of ram, possible to maybe make VB utilize all the CPU say 100%? so it executes atleast 2 to 3 times faster.
[Code]...
View 15 Replies
Feb 20, 2010
I have an application in which I save transactions. So I have a datagridview populated with records and i test for changes in the datatable when saving.then i loop through the changed rows and save in the following order:I have a command that saves a wage.then a command that saves interest.I use this to save as a transactiondate:
acccmd.Parameters.AddWithValue("@TransactionDate", tdate.Date + Date.Now.TimeOfDay)
then the other command :
intcmd.Parameters.AddWithValue("@TransactionDate", tdate.Date + Date.Now.TimeOfDay)
but sometimes the code is executing the two commands on the exact same time. Now I have a query that displays a running total and on order for the running total to work properly no two transactions should have the same datetime for a particular person.how can I add a delay between the two commands to ensure the datetimes are saved differently?
View 4 Replies
Mar 30, 2009
For some reason, .NET applications that I've written seem to have issues if they're launched when Windows starts (by being in the Startup folder for instance). An application that can finish in 3/10 of a second if one launches it normally may seriously take 45-90 seconds to finish if it was launched when Windows loads. Even if I just manually wait 30 seconds after login and launch the program, it'll complete virtually instantly while a copy launched at startup is still struggling along, so it isn't just that Windows is still loading...this continues AFTER that finishes and all HDD activity stops.Writing something to disk using an IO.anything goes at about 20KB/s during this event.
View 7 Replies
Jun 20, 2012
Can somebody explain the second one to me? I'm not clear on the concept.The first one I know is an array of integers. but what about the second one?
View 2 Replies
Dec 7, 2009
Is there any difference between these two ways of declaring a Integer and setting the value to zero? vb.net Dim x As Integer = 0' or...Dim x As New Integerx = 0 Is one way better than the other in any situation?
View 15 Replies
Jan 28, 2012
I have recently taken a liking to programming, and have programmed a few games in C#,my friend has asked me to program an application for him to use in his shop. But I have no idea of what language is best suitable?
View 8 Replies
Aug 16, 2009
I am making a little game for my friend in Visual Basic 2008. It uses 3 files (gamedataidname.txt, gamedataidlevel.txt, gamedataidgold.txt).
When the play button is clicked, I wrote some code to check if the file exists and display the content of the 3 files. This part works fine. But then I have a 'Else' statement to create the files.[code]...
View 6 Replies
Jan 5, 2011
I am trying to access the parallel port and want to on off an LED connected to the parallel port. i have read from different tutorials and write the code. but it is not working.
vb.net
Option Strict Off
Option Explicit On
Module InpOut32_Declarations
[Code].....
View 21 Replies
Apr 17, 2010
I have designed a application in MS Excel 2008 on Windows XP using Visual Basic Application (VBA).Each and every thing is going fine on my side.My client is using MAC OS and MS Office for MAC. When i deployed my application to Client end one serious problem comes arise.
The problem is that when my client is opening this project he is getting it into the Design Mode.
[Code]...
View 2 Replies
Jun 17, 2009
im programming this group of hexadecimals this group of hexadecimals are connected to a serial port(drag out from vs 2008 tool bar) so dat the serial port can trigger on or off
however i only need to change a certain portion of the hexadecimal...
View 3 Replies
Jan 25, 2008
how to do socket programming in VB. I'm using VB.NET 2008 and i'm a novice but with a reasonable understanding of programming so I want to learn by examples and understanding it in a novice/intermediate point of view. Essentially, I want to create a simple TCP or UDP client that can connect to an IP and port and retrieve the stream for parsing of content.
View 5 Replies
Sep 24, 2010
I am not sure if this is the right area but I am new to Visual Basic and what I am trying to accomplish is creating a combobox in visual basic 2008. I have made the box and put in the list i needed but programming it to what I am needing is not working right. What I am looking for is the proper code when selecting an item in the dropdown and clicking next it will run an application (most are going to be .bat files). Like if I select Admin Batch in the list and hit next it will run admin.bat or if I select Printer Install then click next it will run printerinstall.bat.
View 9 Replies
May 4, 2010
i'm currently using my computer as host and client.. i ran the program and the console application for the server started.. but how will i be able to run the form application for the client? can VS run 2 programs at the same time?
View 6 Replies
May 25, 2010
I want to read a random line (that I've chosen via random number) in a text file. I want to the system IO reader. But I am confused as to how to read a random line. Here's what I have...
[Code]...
View 10 Replies
Aug 4, 2010
I need to write an program with two players rolling a pair of dice and the highest tally wins with an Game class having with two member variables of the type PairOfDice. I can not get it to work.
[Code]...
View 8 Replies
Apr 26, 2010
States =
Dim decNeb As Decimal = .0684D
Dim decKan As Decimal = .0645D
[code].....
View 1 Replies
Jun 12, 2011
I have been working on this all weekend and can't figure out what I am doing wrong. The objective is to collect 3 numbers from the user then display to them the numbers they entered, the lowest number entered, the highest number entered, the total, and the average. Can someone review this and tell me what I am not getting?
[Code]
View 3 Replies
May 27, 2010
I have encountered on my project that was due in 2 days ago. I have created a form that will not display correctly. Here is the assignment and what I need to accomplish. Major issue the display bill box.
[Code]...
View 4 Replies
Aug 21, 2009
Is it possible to create a programming language using vb.net?
View 4 Replies
Sep 25, 2010
ive got some simple problem i cant understand how to solve.
str(1) is an array and integer(or double, tried both)
a(1) is an array and integer (or double, tried both)
a(1) = a(1) + 1
Label1.Text = str(1) + a
the big part is where i get: operator '+' is not defined for types 'integer' and '1-dimensional array of integer'.why do i get that message and what does it mean? how do i make the code do what i want?
View 1 Replies
Aug 11, 2011
I faced an error when upgrading VB6 code to VB.NET. The error occurs at AddressOf WindowProc
AddressOf expression cannot be converted to 'Integer' because 'Integer' is not a delegate type
My declaration for SetWindowLong is:
Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA"(
ByVal hWnd As Integer,
ByVal nIndex As Integer,[code]....
What is the reason for the error I get?
View 1 Replies