Build A Very Simpe Minigame In Which The Player Has To Pursuit And Catch Certain Figures On The Screen?

Sep 14, 2009

Here's my situation: I'm tryring to build a very simpe minigame in which the player has to pursuit and catch certain figures on the screen. This figures are currently showed as images on PictureBox wich i pass ByRef to some classes where the movement subrutines are. I have all the graphics in PNG, with transparent background, format and they look fine on the background, but when 2 or more of this figures are over the same place on the screen every PictureBox covers the underlying figure, so all i can see is one figure over the background.I was wondering if theres a way to solve this... Maybe using more powerfull libraries or something like that.

View 4 Replies


ADVERTISEMENT

Write A Simple Game On Which The Player Has To Pursuit Some Figures On The Screen?

Oct 16, 2009

I'm currently trying to write a really simple game on which the player has to pursuit some figures on the screen. Since i'm just writing the prototype version i'm using a Panel wich i redraw 1000 times per second. Now, i want that every level is similar but not the same as past level, so i created a Level Class that contains the game objetcs of Player Class and the Figure Class, wich are the ones that have all the movement subrutines. So, with a Timer, 1000 times per second, i get the input from a joystick, pass it to the player objetc and update the position of the figure object. All this stuff is reported to an internal Panel that every level object has, wich i refresh and then pass it ByVal to the panel that the player actually sees. The problem i have is that after the first level ends, when the second level starts running, i can see the last frame of the fisrt level flashing behind the figures and it makes the game run a bit slower after every level. I tried keeping a copy of the inicial state of exterior panel and use it to clean the one i'm using on the levels but it didn't work...

View 11 Replies

Catch Media Player Error?

Jul 12, 2009

I m selecting the folder & playing all the files in the media player, of that folder. As u know folder contains all types of files including text,zip,image & so on.So I want that when URL that is assigned to Media Player is .txt,then i assign any default image from resources.I do not want to check extensions-Currently I m checking the extension of each file before paying but i dont want dat.

Public Class Form1
Public Ext_bmp As String = ".bmp"
Public Ext_jpg As String = ".jpg"

[code]......

View 2 Replies

Catch When Media Player Song Ended?

Jun 4, 2011

I have made a program that loads all the songs on my computer into a listview and plays them at random (at least that is what I want) right now I have them moveing to another list and removeing them from the current list so that none are played twice but I can't figure out where to put the code to make it wait until one song stops before starting the next song. is there a media completed function or something that I'm missing?

View 1 Replies

Build A Multithreaded App - Catch The Returning Value?

Dec 26, 2010

I'm trying to build a multithreaded app but I couldnt find anything on google on how to catch the value that the lambda function returns.

ThreadPool.QueueUserWorkItem(New WaitCallback(Function() As Integer
Value += 1
Return Value
End Function))

View 9 Replies

VS 2005 Catch Media Player Error - Checking The Extension Of Each File Before Paying

Jul 13, 2009

I m selecting the folder & playing all the files in the media player, of that folder. As u know folder contains all types of files including text,zip,image & so on. So I want that when URL that is assigned to Media Player is .txt,then i assign any default image from resources. I do not want to check extensions- Currently I m checking the extension of each file before paying but i dont want dat.

[Code]...

View 5 Replies

Build A Flash Player That Runs Flv Files?

Jan 6, 2009

Can soe one assit me how can i build a flash player that runs flv files..?!

View 7 Replies

DVD Player Full Screen

Feb 17, 2009

I,ve been making this DVD Player everything is fine all the codes are fine but I can't put Full Screen on my DVD Player. I have been trying to work it out for a while but can't seem to do it. I have this button that says Full Screen and I'm trying to work out how i can click on the button and the dvd player goes full screen.[code]

View 10 Replies

VB App To Catch The Moment When The Resolution Of Screen Are Changed With A Message

Sep 26, 2010

I have one issue with screen resolution. I want to know if is possible in my VB app to catch the moment when the resolution of screen are changed with a mesage. For example i have now the resolution 1920x1080 but when the user change the resolution to 1024x768 i want to catch this moment to change my controls size in app For Now in my app i get only the current resolution:

[Code]...

View 1 Replies

Get Closest Tile To Player On Screen?

Mar 17, 2012

I've managed to implement a formula that helps me to get the closest tile's distance that meets my requirements. The only thing is, I can't retrieve the actual tile for some reason... Tiles are named "Items" also. Here is my code:

[code]...

It puts green squiggly lines under ClosestItem and gives me the error: "Warning 2 Variable 'ClosestItem' is used before it has been assigned a value. A null reference exception could result at runtime."

View 7 Replies

Program A .net Framework Message Dialog Screen In To The Catch And Try Command?

Dec 17, 2009

how do I program a .net framework message dialog screen in to the catch and try command

View 15 Replies

Window Media Player - Suppressing Full Screen?

Mar 12, 2010

I'm using Windows media player to display movies within my vb.net application - which works fine. But I have noticed if I double-click the movie it expands to full screen, which I don't want. I want it to stay in the window where I put it. I cannot find a setting that affects this,

View 2 Replies

How To Build A Main Menu Screen

Jan 1, 2011

I'm a beginner VB.Net programmer using VS 2008.I'm planning a new winform project whose main form should look more or less like this:

[Code]...

The user can either choose from the Main Menu (by clicking an item) or enter the item number in the textbox. For example, if the user clicks DoSomething3 in the Main Menu (or alternatively enters 3 in the textbox), another form will be opened and hide the main form.What would be the best way to implement it?Specifically, I would like to know how I make so that choosing from the menu and entering a number in the textbox fire the same event.

View 3 Replies

Dual Screen Video Player With Windows 7 Thumbnail Preview?

Aug 25, 2010

I try to create a dual video player with VB 2010.

With that I have 2 forms, 1 main form (with all the controls and it should contain a preview screen of what is being displayed on the second form.

And a second form (with a windows media player component).

Now the main form should have (as told) a preview screen of what is shown on the second screen, I want to know if it is possible to have is as the windows 7 taskbar thumbnail (when preview the mediaplayer).

View 2 Replies

Program Infront Of Windows Media Player Full Screen Video?

Apr 13, 2012

One of the things my VB.NET program does is play video files using the Windows Media Player component that comes with VB. My program also switches the WMP component to full screen but once in a while the form will be on top of the full screen video. I am hoping that you fine and knowledgeable folks cat this from happening. The problem occurs when the next video file is played automatically. I'll do my best to post a bit of code but since I don't have much of an idea what might be causing this I'll just have to guess. The project has gotten quite large over the years I've been writing it and if any more code ito post any or all of it, though I'm sure no one would like to go through all 1771 lines of it.

Private Sub WMP_PlayStateChange(ByVal sender As Object, ByVal e As AxWMPLib._WMPOCXEvents_PlayStateChangeEvent) Handles WMP.PlayStateChange
If Stopping = True Then

[code].....

View 7 Replies

Take A Screen Shot Of Only The Windows Media Player Control Vb 2005 - 2010?

Nov 18, 2011

I have looked all over the internet to find specifically what the title says and i cant find anything that will work and is what i want, it's mostly all vb6. so even more specifically i am creating a program that captures screenshots of the "axwindowsmediaplayer" control at what ever frame or part of the video it's on. i also noticed that there is a command in the little menu when you type in "axwindowsmediaplayer.capture" i don't know how to use it?

View 2 Replies

VS 2008 Windows Media Player Control - Full Screen Button?

Feb 17, 2010

I have an application that is currently playing videos through the windows media player control from a website. I want it so that a button I have created, when clicked will make the wmp control full screen.

View 1 Replies

VS 2008 - Minigame - Game That Lets The User Move A Picturebox Around With Arrowkeys

Nov 21, 2009

I've made a small game that lets the user move a picturebox around with arrowkeys. The monster picturebox is moved towards the player and keeps growing while you are "alive". If it touches you, you lose.

How to improve my code. Im the worst ever at OOP programming. The main reason is i dont understand how i can pass variables between subs/functions e.t.c. I've read up on overloading operators but i dont feel that i can grasp it. If someone has any comments or any simple examples on improving my ability i wouldnt mind hearing them ^^

This is what i have now. Attached project (with "graphics") without .exe files and all code is also below. Also an image of what it looks like below.

CODE:

View 3 Replies

Build An App That Closes Itself Everytime Someone Uses A Screen Capture Software?

Jan 24, 2012

I want to build an app that closes itself everytime someone uses a screen capture software. Is that posible?I know many of those screen capture softwares are made on Visual Basic.And I wonder if is posible to detect a common component of those kind of capture applications.Because, I do not want to update my app every time a new screen capture software appears.

View 1 Replies

How To Create Splash Screen With Build Date / Time

Apr 20, 2010

I am creating a splash screen for my vb.net 2005 app (.net 2.0 framework). I would like to include the build date and time on the screen without having to manually enter it myself everytime I do a release.

View 1 Replies

Determine Programs Build (or Compile Or Publish) Date For Splash Screen?

Jul 16, 2009

I have a "ClickOnce" application and on the Splash screen I display the Version. I am also displaying the "CreationTime" (see below) that I thought was when the Build or Publish was done. Today I realized it is displaying the date/time when the application is actually installed on the PC. How do I pull the date when the this version was compiled, Built, or Published? I really do not care which -I just want a constant date the sticks with that version. I'm using VB 2005.

[Code]....

View 7 Replies

Error - Catch Cannot Catch Type 'Microsoft.Office.Interop.Outlook.Exception'

Mar 25, 2011

I have a program in VB.Net that receives mails from Outlook, extracts attachments and inserts the attachments into a table through a query. I would like to put the query/queries in a Try/Catch block, but cannot do so as Outlook exceptions cannot be caught, and it gives me an error, and unless I put a very specific exception, I cannot catch it. Is there a workaround?

Edit:

Try
Catch ex As Exception
End Try

Exception is underlined and when I hover on it, it says: "Catch cannot catch type 'Microsoft.Office.Interop.Outlook.Exception' because it is not in 'System.Exception' or a class that inherits from 'System.Exception'". This is affecting all my other code which I'd like to put into a Try/Catch block.

View 2 Replies

Restructure Try / Catch To Eliminate Error On Myreader.close Command In Catch Part?

Jun 19, 2012

The following code causes a "Warning" that Variable is used before value assigned.How do I restructure this Try/catch to eliminate error on the myreader.close command in the Catch part? Code appears to work fine but I dont like Warnings. [code]

View 8 Replies

Button_click Event Will Not Stop Execute After Error Catch Using Try - Catch Statement

Apr 1, 2011

i have problem when i click a ADD button, there is one null value in the textbox .. so the try catch statemnt is to catch that null value error but after that the catch is success but the button click never stop excute the statemnt till the end of the button event.

View 6 Replies

Nested Try...Catches - If An Exception Occurs In The 2nd Sub's Try...Catch, Which Catch Gets Excecuted?

Mar 4, 2009

I have this scenario: in a Sub I have a Try...Catch statement.Within that Try..Catch I call another sub.In that 2nd sub is also a Try...Catch.(see below for example).Now if an exception occurs in the 2nd sub's Try...Catch, which Catch gets excecuted? The 2nd one, the 1st one or both?

Private Sub sub1()
Try
..do stuff[code].....

View 3 Replies

If Throw An Exception From Within A Catch, Does The Finally (from The Catch) Still Execute

Jun 2, 2009

If I throw an exception from within a catch, does the finally (from the catch) still execute? i.e.

Try
..some code with an exception in it...
catch ex as Exception
throw new SpecialException("blah blah" & ex.Message, ex)

[code]....

View 6 Replies

Loop To Add Figures?

Nov 25, 2011

How can I add a loop to this sequence to make the program give a total of the figures in the domestic and international columns when the word "ALL" is typed into the month textbox,instead of a number. The domestic total should go into the domestic textbox, the international total should go into the international textbox and the total of the domestic and international should go into the companytotal textbox.

'Basic Info:
'Month Domestic International
'1 100,000 150,000

[code]....

View 2 Replies

Loop To Total Figures?

Nov 25, 2011

How can I add a loop to this sequence to make the program give a total of the figures in the domestic and international columns when the word "ALL" is typed into the month textbox, instead of a number. The domestic total should go into the domestic textbox, the international total should go into the international textbox and the total of the domestic and international should go into the companytotal textbox.

[Code]...

View 1 Replies

Catch Log4net Exceptions / Use Try / Catch Approach

Jan 23, 2012

I need to catch log4net exceptions (its own exceptions not app exceptions logged by it). I wish there's a way of doing it this way: [code] I have this code implemented and there's no errors in compilation but i force log4net to have an error (pointing to a non existing database in the config file) and nothing is threw.I've tried the listener aproach: [code] and it's writing the errors to log4net.txt, the forced ones i mean.This last aproach has a couple of drawbacks: it won't append every error to the file, if the error is the same it doesn't write it, i can't get the listener to write every error to that file, only one (I don't know how to fully configure the trace listener, it might be that). Thus it won't append the date and hour to every line wich is a necesity for me. Finally i can't give structure to it (xml). Even if the listener work i need to use the try/catch aproach, since i'm using ExceptionHandling from Enterprise library to log the errors in my app.

View 1 Replies

Domestic And International Figures Keep Coming Out To Zero

Nov 24, 2011

Does anyone know why the domestic figure is showing up in both the domestic and international textbox? And why the totals of the domestic and international figures keep coming out to zero? [Code]

View 4 Replies







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