When Import Background My Ball Speed Slows Down?
Jan 17, 2010
I just finished working on my school vb project - breakout. As soon as i import background my ball speed slows down dramatically. I used 1.25mb bmp, 40kb jpg, and lower resolution copies of both but i get the same result. In my game i use bitmaps for bricks, platform and the ball along with a timer and draw e.graphics function. How can i illuminate the reduction of the speed of the ball when i add my background?
View 3 Replies
ADVERTISEMENT
Apr 5, 2011
I have a this program I have to write but I have no clue where to even start.New Years Ball Drop?Design a program that replicates the Times Square New Year�s Eve ball drop. You can use a picture from the Internet of the ball you wish to use.Functionality Requirements:
-The ball will take exactly 30 seconds to move down the pole
-Need a timer to count down from 30 and reach 0 when the ball is at the end of the pole
-The timer will randomly change colour every few seconds
- When the ball has finished descending, the text �Happy New Year!� will display on the screen
-Need a button on the form that, when clicked, stops the ball drop and timer (so screenshots can be taken). When the button is clicked again, the timer and ball drop should resume from where it left off.
View 1 Replies
Nov 14, 2011
I have a per-call WCF service that serves a number of clients. I'm looking to speed up the services by running some background processes so they don't block or slow down the main function of the services.
One example is that the main function needs to return a set of data, while the background thread needs to record some statistics based on the parameter(s).
Code:
Public Function GetAccountDetails(id As Integer) As AccountDetails
Dim retVal As New AccountDetails
Dim a As New Accounts
[Code]....
If I use this background thread to record the statistic it doesn't block the main thread from returning the data to the client.
It's been working well in test scenarios, but my question is, are there any dangers with leaving this thread to execute without Joining it before returning the data to the client? Could there potentially be any loss of statistic data? Could there be potential memory problems on the server side?
View 1 Replies
Jun 17, 2010
when I try to import an image into the forms background the form turns white ( I want another color ) and when I move controls around the pictures of the controls stay the screen. How can i fix this?
View 3 Replies
Feb 21, 2012
How do i exactly check internet connection speed.I have searched around google and found out a method w/c will Download a file like 1mb size, then it will calculate the speed.
View 1 Replies
Dec 31, 2010
how do i check the bandwidth (download speed and possible upload speed) of a user in vb.net or php that uses my app or visits my site resp?
View 1 Replies
Nov 30, 2010
I have a codes that calculates DownLoad speed and UpLoad speed kb/s. I would like to implement this kind. I also want to put such kind of graph. Any article or links where can I start building my own like that.
View 2 Replies
Oct 2, 2010
I just installed the .Net4 update from Windows update. (KB2416472) Date last published: 9/30/2010
Now when I boot up it takes almost a minute before apps loaded are usable, for example Avast virus shows its not in full protection mode, you can't access any apps I made that are in the tray, even the LAN is not active or in the tray, before the .Net4 update I could access these apps instantly. The update also adds another file to the running processes called mscorsvw.exe. (yeah more bloatware!)
I have a back-up image of my C: drive so I restored the image twice now and installed the .net4 update and see no difference, it still slows everything down on boot, on WinXP anyway, haven't tried it on my Win7 PC yet. Just curious if anyone else noticed any abnormalities with the .net4 update that was just released.
View 4 Replies
Feb 16, 2009
I wrote a small application (150kB) which controlls 2 comports, is sending and receiving messages from both sides and is able to write/read into a text file. My problem starts after I run the application for 2 hours or more. The PC starts to be really slow, it takes ages to even open a folder. What can be the reason? I understand, there might be something in the buffer; how can I clear the buffer from time to time.
View 4 Replies
Jul 29, 2009
i want to monitor the speed at which my system is currently Downloading and uploading. I dont have any idea how will it can be done.
View 6 Replies
Jul 15, 2010
I have a strange issue when using WindowsImpersonationContext.
Whenever I use Impersonation in a Windows Forms and the Main Form loses focus, all of the controls freeze up and their events are either not triggered or take too long to trigger. This only happens when I use LogonUserA with a user that is not the current[code]....
View 11 Replies
Oct 15, 2010
I'm using Visual studio 2008 and microsoft sapi in a forms application. I am using text to speech which works just fine however when the computer is speaking it "bricks" the application and the main ui is unresponsive until the computer is done talking then everything returns to normal. To counter this issue I tried using the background worker thread to establish the sapi on another thread however the form is still freezing when the computer speaks. I would like to note that at this point there is nothing on the form except a tabbed window and a few buttons the form is not performing any code what so ever other then the text to speech.
View 18 Replies
Jun 13, 2011
I am using the BGW to run a long loop of several thousand records against several thousand records. If I open another form in the project then the process slows down dramatically, that is because in the Form I am opening has a DGV tied to Table that is being used in my loop process, so I understand why the process slows down.
What i am wondering and experimenting with is how to close the form and have the process resume to "Full Speed" if possible
I tried Closing the form verse Hiding it and DGV.DataSource = Nothing
Thinking that would unbind it?? and free up resources?
View 1 Replies
Nov 26, 2009
all of a sudden my program just doesn't seem to work like it used to.[code]It searches the picture box for the color that you tell it to, and it moves and clicks the mouse at that pixel. Well... it used to do that, now it just locks up and won't respond for about 20 seconds.
View 1 Replies
Aug 22, 2011
I found a strange issue with the combination of RichTextBox and RegEx.If I load a text file into a RichTextBox and use
Dim matches As MatchCollection = Regex.Matches(RichTextBox1.Text, "^H(.+ ){10}
", RegexOptions.Multiline Or RegexOptions.IgnoreCase)
then the RegEx will run blazing fast.OTOH if I load the text from a file straight into a string and feed this string with RegEx.Matches using
Dim FullText As String = New StreamReader("c:TempTextFile.txt", System.Text.Encoding.UTF8, True).ReadToEnd
Dim matches As MatchCollection = Regex.Matches(FullText, "^H(.+ ){10}
", RegexOptions.Multiline Or RegexOptions.IgnoreCase)
then the regex will run for ages.Now obviously the RichTextBox does something to the text. I found that loading the text into the RichTextBox will eliminate the first 4 bytes of the text (is that the byte order mark?). However, trimming those 4 characters with SubString won't solve the problem. RichTextBox does some other processing that I'm unaware of.I'm using RegEx both on client and server side (client can load text files into a RichTextBox to test and setup various RegEx's and the server will process text files according to these previously setup RegEx's). Needless to say that a regex will run blazing fast on the text file loaded into a RichTextBox, while the very same RegEx ran through the very same text file will seem to lock up the server side service.My question: what kind of text processing does the RichTextBox do and how can I mimic the behavior in a server-side process?
View 1 Replies
Dec 31, 2009
As a preface, I am brand new to using SQL Server 2005; I know how to use the SELECT, UPDATE, DELETE, and INSERT commands and that's about it. I am also using Express Edition on my local PC (E8400 processor, 8GB of DDR2-800, 2 x 640GB SATA-II HDD in RAID 1)
I have a table that I set up with 8 columns, all are NVARCHAR(Max) and I allow Null. I know in concept what a primary key is, but I don't have one (nor do I know how to set one up).
My VB.NET program that I'm working on is downloading a historical stock price chart from Yahoo, for every single ticker symbol in existence. The first 50,000 rows or so I added was super fast. Then I went to bed, and when I woke up it was still running - but the rate of row additions has slowed waaaaaay down; I noticed this around row 300,000. I always expected the rate of row addition to be constant over time, but obviously this is not so!
From browsing other Stack Overflow questions, I suspect my slow down is related to my piss-poor table setup. If this is the case, where should I begin first to fix this, and are there any good resources I could read up on to get started? I'm hoping this is something simple I can fix [code]....
View 5 Replies
Jan 4, 2012
i want to check for the lan speed and put this speed value in a progress bar.
for example:
[==== ] the lan speed now is 23 KB/s
and there is another problem is if there are a LAN and a WiFi adapter in the same time how do i check for the speed for both adapters
View 1 Replies
May 14, 2011
I am trying to make a Bouncing ball, not with an ovalshape but with a graphic. This is the code so far.
Public Class Form1
Private r_index As Integer
Private startx As Integer
[code].....
View 14 Replies
Nov 9, 2009
in school im making a dodge ball game but i cannot get the ball to return to its original position. My code and form are below
[Code]...
View 6 Replies
Feb 13, 2010
Write an application that allows the user to play a game, in which the goal is to prevent a bouncing ball from falling off the bottom of the Form. When the user presses the S key, a blue ball bounces off the top, left and right sides (the �walls�) of the Form. A horizontal bar on the bottom of the Form serves as a paddle to prevent the ball from hitting the bottom of the Form. (The ball can bounce off the paddle, but not the bottom of the Form.) The user can move the paddle using the left and right arrow keys. If the ball hits the paddle, it bounces up, and the game continues. If the ball hits the bottom of the Form, the game ends. The paddle�s width decreases every 30 seconds to make the game more challenging.
View 4 Replies
Apr 26, 2011
how to change the balls speed
View 2 Replies
Mar 31, 2012
I am trying to make a 'puppet' change into a ball when I press e.g. the right arrow key. I used getasynckeystate(keys.right) to check for the key in a timer. The moving is working well but I don't have an idea how I can make it change in a picture of the 'puppet' changing which then changes into a ball. Does someone know how to do this?
View 3 Replies
Dec 30, 2009
I am now trying to make a bouncing ball in vb 2008, ofc i looked at some guides first to see how they built their codes
Public Class Form1
Dim m_Dx As Integer
Dim m_Dy As Integer[code]....
As you see there are many variables
View 4 Replies
Oct 3, 2011
I'm attempting to move an image (technically a Powerpacks ball...).
Public Class Form1
Dim XSpeed As Decimal
Dim YSpeed As Decimal
Dim BallLocation As New Point(Ball.location.x, Ball.location.y)
[code].....
View 4 Replies
Nov 22, 2010
I'm coding the game timer, but am noticing that the gameBall is undeclared and don't see it in the tutorial.Private Sub gameTimer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles gameTimer.Tick
[Code]...
View 5 Replies
Sep 3, 2009
Ive been experimenting with physics of objects in visual basic and what (a boucing ball) and Ive been wanting to take it the step further, make the ball bounce around the desktop. but how.
View 5 Replies
Apr 17, 2011
The goal in this assignment was to create a Magic 8 Ball that would display answers via array.Here's what I got down so far, now I apologize once again, I forgot most of the stuff so I don't even know if it is REMOTELY close to what it's suppose to be
Public Class Form1
Dim ArrayRes(7) As String
Private Sub btnASK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnASK.Click
[code]....
View 4 Replies
Feb 12, 2010
Structure Tinnings
Dim bowler As String
Dim ball() As tballs
End Structure
[code].....
how can i now define the length of the array ball() in Tinnings structure to 6, (its a cricket program, with 6 runs in an over).
View 3 Replies
Nov 4, 2009
I am trying to make a program that will calculate the height of a falling ball for every .25 seconds starting at 0 and going till the height = 0 or until 10 items have been listed. I have started the code, but it just isnt working out!
Dim h, time as double
Dim aftert as integer
Do While h>0
[Code]....
I get an "expression needed" error from the &time& and nothing is displayed in the list box. Not to mention, I have no idea what to put in the loop or how to limit the list to 10 items or until the ball hits 0.
View 4 Replies
Jul 7, 2010
I have a timer that bounces the ball around. It has 2 separate parts, one for bouncing off the wall and paddle, and one for hitting a block.It touches the block and the block is suppose to disappear, it then bounces away and should not bounce where the block is again because it is gone ,So basically the problem I'm having is, every time I add a line that tells it not to bounce off the block if it is not visible, it hits the top of the block (which is the side I'm testing) and seems to get stuck on a horizontal line and just bounces left and right.Here's my timer code.
vb
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
'This top line below reads the last 'thespeedx/y' value and applies it to the new location information of the ball (which will be called shpcircle) This determines the direction, based on a constant speed[code].....
View 2 Replies