Play PictureBox With Recorded Location?

Oct 20, 2009

i m save location in listboxes Like this:

Private Sub Form1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove
ListBox1.Items.Add(e.Location.X.ToString)
ListBox2.Items.Add(e.Location.Y.ToString)
End Sub

View 14 Replies


ADVERTISEMENT

Get An Animated Gif Picturebox To Play

Nov 3, 2009

I'm trying to get an animated gif picturebox to play and then after it is done "Playing" it will hide and show another picturebox. I thought I could do this with a timer but I can't really seem to get it to work. I need this in the form_load because the first picturebox shows on form load.

[Code]...

View 9 Replies

Game Programming :: Sound Files - Use .exe On Another Computer It Doesn't Play Because It Does Not Recognize .wav Location

Jan 17, 2010

To programming and have a question with sound files. I am trying to figure out the basics and here is what I did: I created a button that is supposed to play a sound.

My.Computer.Audio.Play("C:.......file.wav")

When I click this button in my .exe file it obviously plays because I am using the computer with the above location for the .wav file. When I use the .exe on another computer it doesn't play because it does not recognize that .wav location. How do I make this work for me? Do I need to embed the .wav with my .exe somehow?

View 4 Replies

How To Move PictureBox To Set Location

Oct 18, 2009

I am currently working on a game that I want to add squirrels running around at random for me to kick off the form.
Ex..
picturebox.location=200,200
And I set a new location for it, as 5,5, how can iIget the picturebox to move to that coordinate, a few pixels at a time until it gets there, so it looks like my squirrel is running to that location?

View 1 Replies

PictureBox BackgroundImage Location?

Oct 26, 2011

Can the background image in a picture box be moved, or located some where else, not the top left corner?I am aware of the layout that can be changed but that is not what I am after.

View 3 Replies

Random Location Of A Picturebox?

Dec 1, 2009

I want to load a picturebox and it gets a random location on the screen.How do I do that?

View 3 Replies

Certain Location Click - Code With A Picturebox

Jul 9, 2010

Im in need of somehow a code that with a picturebox, depending on WHERE you click it will do something.
Lets say theres a picture of a face. The eyes are at like x = 12, y = 28 , if the user clicks the picturebox around that area a msgbox will come up saying "Eye" or something, this is just an example

<!DOCTYPE HTML PUBLIC "-W3CDTD HTML 4.01 TransitionalEN">
<html>
<head>

[CODE]..........

Any way to "convert" this code to vb.net?

View 6 Replies

PictureBox Change Location By Arrow Key?

Oct 14, 2009

How to Picturebox Loacation Change My Arrow Key in Form

View 3 Replies

Picturebox Control Location On Screen?

Dec 17, 2009

I have a picturebox (pbRows) that I want to always be aligned with the right side of the screen. The form may be wider than this (I have a horizontal scrollbar), but the picturebox always needs to be along the right edge of the screen. Currently I have this code snippet in the form_load subroutine:

Dim rowsX As New Integer rowsX = Screen.PrimaryScreen.Bounds.Width - pbRows.Width pbRows.Location = New Point(rowsX, 25) However, the picturebox is aligned with the right edge of the form (initially hidden off the screen). Am I missing something obvious?

View 13 Replies

VB 2008 Picturebox To Random Location?

Apr 23, 2010

I am a grade 11 student in high school and am struggling with a project in my computer programing class. in the project we are to create a mario game, where you have 2 pictureboxes (the player and the enemy) one picturebox, the player, is moved using the keypad, the goomba isn't moved at all. the object of the game is to 'kill' as many goombas as quick as possible. I need to make the game so that if the boundries of the player intersect witht he boundries of the goomba, the goomba will move to a random location.

I can't get the goomba to move to a random location, here is my code. I highlited and bolded the part of the code that I am having the prolem with.

Public Class FrmQ4
Dim intLocation As Integer
Dim intCounter As Integer

[Code].....

View 1 Replies

Forms :: Picturebox Flickering When Location Changed?

Aug 3, 2010

i am making an RPG game with visual basic...The character is a picture box.The problem is when i move the charactor with the arrow keys it flashes black for a milisecond. I think added animated walking where it slowely moves 32 pixels but not it goes black the whole time... what can i do sto stop it going black everytime it moves?

Old movement
If e.KeyCode = Keys.Right Then
player.Image = My.Resources.mainplayerright
moveto = New Point(playerx + 32, playery)

[code]....

That code moves the player slowely but causes a big black line to merge then just ends up teleporting the player..How can i get rid of the black flash during movement?

View 2 Replies

Get Location Of Mouse Cursor Within Picturebox On Click?

Dec 25, 2009

I need to know how to get the position of the mouse within a picturebox just as you would with e.location, but you can't use e.location with a picturebox and you also can't use Picturebox.Mouseposition which is very unfortunate.

View 2 Replies

How To Change Cursor Position To PictureBox Location

Jun 30, 2011

I created a game where you use the mouse to play, it's like the game labirynth. You can't touch the walls or you lose. When I start the level I want the cursor to appear in it's starting position, which is a red picturebox.

Here is the code I used:
Windows.Forms.Cursor.Position = New Point(679, 650)
The location where the cursor appears is actually dependent of the resolution of the screen.

For example: with my monitor resolution, the location (679, 650) is right on top of the picturebox i need it to appear on. but if you have a different resolution on your monitor it will appear on a different place. I need to actually make it appear on top of the picturebox.

View 1 Replies

Image Location (code) Of PictureBox Control

May 16, 2011

I'm inexperienced with windows forms (vb.net), and I have a rather silly question.I'm opening an old project of someone elses, and there's a PictureBox control on the form. The PictureBox has a photo, and I'm trying to find the location of the photo on the computer but can't find it.In ASPX, I can just look at the code behind and find out where the tags are pointing to (for the photo).The only code that exists for my object, with the image property is this: [code]

View 4 Replies

Move Form Change Location Of PictureBox?

Jul 25, 2011

I'm new on VB.Net.When I move my Form,it changes my picture location automatically so i can not Get pixel value correctly and it gives me Error.[code]...

View 5 Replies

Picture Into Picturebox Based On Pixel Location?

Sep 30, 2009

i have a chart of images.. and i want to load individual images into picturebox from that chart..chart = big image, eg alphabet chart. (yes i am creating a game for my small nephew.. pictures and alphabet) now, i want to show different pieces of images into picture box. like the A box, b Box etc one option is to cut the chart into pieces, save each piece with different filename and load individual filename into picturebox.but i saw somewhere that we can use pixel location to load images into picturebox..as i recall it required two pixel location, 1 was upper left and other was lower right.. and passing that pixel locations would load the rectangular image between those pixel locations into picturebox?

View 9 Replies

PictureBox Image Location Returning Null

Jan 5, 2012

In my VB.NET application when I try to get the image location using picturebox.ImageLocation (path), it is returning null. I have to use that path string in filestream's parameter to open it. Since it is returning null, I couldn't open the file (image) in filestream. The following error is coming:
"Path cannot be null"

This is my code:
Dim path As String = Picturebox1.ImageLocation
Dim filestrm As FileStream = New FileStream(path, FileMode.Open)
Dim arry(filestrm.Length - 1) As Byte
filestrm.Read(arry, 0, filestrm.Length)

View 6 Replies

[2008] Setting Picturebox Location On Form?

Feb 14, 2009

i need a picturebox to, when an event has happened to either revert back to its original place.or set a location for it to go after the event has taken place.ive tried lots of different code but its not working?

View 3 Replies

Check The Picturebox Location When Move Them Anywhere In Winform Using With Splitcontainer?

Aug 14, 2011

How do I check the picturebox location when I move them anywhere in my winform using with splitcontainer?

Something is like this?

Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
Dim x As Integer

[Code].....

View 6 Replies

Image Location - When Select An Item In The Listbox, A Picturebox Shows The Preview Of That Certain Product?

May 9, 2012

I'm trying to build a project where I have a set of products in a listbox. When you select an item in the listbox, a picturebox shows the preview of that certain product.I practically finished the entire project as well as the picture part; however, I realized that the way I set up the coding, I used image locations from my hard drive meaning that someone can't view them on another computer.This is a portion of my coding:

[highlight="Dim PicSelection As String
PicSelection = ListBox1.SelectedItem
Select Case PicSelection[code].....

View 1 Replies

Saving A Recorded Video In VB 2008

Mar 1, 2012

How To Save A Recorded Video In VB 2008? I'm having a problem on my code um i can't seem to save the video that i have recorded in my project. everytime the dialog that allows me to save and when i check the destination where i saved the video it won't appear so i don't know if it really recorded or it just won't save. and also the filename. whenever i add new song in the listbox for the song list [Code]

View 6 Replies

Take Recorded Coordinates (x,y) And Place Them Into An Array?

Jul 22, 2011

How can I take recorded coordinates (x,y) and place them into an array? I have the variables set up and everything, but I am unsure how to declare the array for this purpose and how to take what I have in the array and graph the coordinates later on.

Here is the relevant

vb.net
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
TextBox1.Text = TextBox1.Text + 1

[Code].....

View 9 Replies

Using TCP/IP - Application For Playing Back Recorded Clips From Dvr

Mar 2, 2010

I am developing and application for playing back recorded clips from dvr. There will be 10 persons reviewing the recorded clips all the time. When the person want to review a particular camera recorded clip, he will send a command through COM to my application. Then my application will read the data from COM and connect to dvr and send data to the dvr. If only 1 person is doing the operation my application works fine. If 10 persons continuously working, then my application is getting very slow and the response time back to the person is high which will make the person frustrated to use the software.

Now, when ever I receive data from COM I'm adding into arraylist and I'm processing one by one. I've 10 forms in my application and when ever I receive data from person1 I'll send that data to form1 and person2's data will be send to form2 and so on for processing. What could be the better way to write my application in order to make the response time to the user faster so that, they'll get the recorded clips faster?

View 21 Replies

Communications :: WinSocket - Transfer Recorded WAV Files Between Computers

Mar 27, 2012

I need to transfer Recorded WAV Files betwenn computers. Now I want to transfer C:/Rec/Record.wav from Client to Server, then back, without the client that sent it take it. I know how to do that, the only problem is sending it. How do I do file transfer in winsock vb 10-11?

View 1 Replies

Record A Screen And Then Output Recorded Frames In Avi File?

Feb 23, 2010

How you record a screen and then output the recorded frames in a .avi file or .wmv, doesn't really matter what kind of file.

View 1 Replies

VS 2008 : Have A Label's Text Recorded Into A Database When Button Is Clicked?

Apr 14, 2009

I would like to have a label's text recorded into a database when my button is clicked. I do not yet understand the database connection. I have created the db, and have the following

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Conn As String = "Provider=Microsoft.SQLSERVER.CE.OLEDB.3.5; Data Source=c: empTestDB.sdf;"
Dim tConnection As New OleDb.OleDbConnection(Conn)

[code]....

When I try to test this the .ExecuteNonQuery() becomes highlighted and says the given type name is unrecognized. My table is setup as table1 and the only 2 columns are datetime and temperature. I want the label text to go to temperature and I would like somehow the time the temperature was taken to go into the datetime field. I had the provider=microsoft.jet.oledb.4.0, but I changed it since I thought this was the one to use.

View 6 Replies

Click The The Song To Play, Even The Play Song Finish But Does't Play Automatically?

May 8, 2010

I want to the song can auto start one by one when import the song to list box. But it doesn't work that I need to select one by one. Besides, the program can repeat all the song or individual song when checkbox enable.

If AxWindowsMediaPlayer1.playState = WMPLib.WMPPlayState.wmppsMediaEnded Then
If playlistbox.SelectedIndex < playlistbox.Items.Count - 1 Then

[code].....

View 4 Replies

Listen To Recorded Material But Not Necessarily In Real Time - Copy File In Use

Oct 15, 2009

I have an application that continously records audio for several hours. I want to be able to listen to recorded material but not necessarily in real time. I have tried to just copy the file being recorded to a new file with overwrite and the copy obviously gets done (filesize changes) but when I try to listen to the copied file my player just 'blinks' and nothing more happens. If I however close the recording, the copy also gets playable. My idea is that copying a file in use just creates another file in use. If this is the case how can I close the copied file?

View 1 Replies

Shell - Media Player Play File Error - Refuses To Play

Sep 16, 2010

Im trying to open media player (full screen) and play a movie. When i create the file path like so: Dim MoviePathVTS As String = String.Concat("""" + tempMoviePath, " \VIDEO_TS\VTS_01_1.VOB" + """")

It wont play the file but if i do it like this: Dim video1 = """F:\Movies\DvD\Angels and Deamons\VIDEO_TS\VTS_01_1.VOB"""

It plays fine? the file paths are the same including the extra "" but it just refuses to play. I need the top one because i have many movies in a treeview.

Heres my code

Private Sub watchNow_Click(ByVal sender As Object, ByVal e As EventArgs)

'get the position of the selected node
Dim i = movieTreeView.SelectedNode.Index

[CODE]...

View 2 Replies

Make A Play Button Play/stop Toggle?

Feb 9, 2010

How can you make a play button play/stop toggle? Currently my button plays a file in WMP but when I click it again, it just restarts the file. I would like it to toggle on and off, play and stop, not play and pause.

View 8 Replies







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