Circular Motion In VB?

Dec 24, 2009

I have to make a learning object program for a school project and i am doing it about circular motion and satellite orbits.how i can get a object to orbit around another object in visual basic, allowing the orbit radius to vary as the user inputs values?

View 2 Replies


ADVERTISEMENT

Projectile Motion In VB?

Feb 8, 2010

What I'm trying to do is simulate projectile motion in Visual Basic using Visual Studio. Essentially, something like this but without air resistance or mass.

Anyhow, the way I'm doing it is using a PictureBox and drawing the image in (of, say, a circle) every so often with a timer of interval 1 with its x and y properties being variables calculated by the formulas.

I want to know what formulas I can use to assign to x and y so that I get a movement like the one on the example. I've tried a bunch of stuff, with help from wikipedia and other sites, but can't seem to pull it off.

View 4 Replies

Sub Slow Motion Display

May 15, 2009

i'm trying to make a checkbox which when its checked it pasues me the dispaly of the animation which i've done by application.DoEvents etc??what i'm doing wrong?

[Code]....

View 1 Replies

Wpf - Motion Animation In Silverlight?

May 21, 2011

I have a project in WPF/VB.net 2010 that I want to create an alternate version of in Silverlight. However, it uses heavy amounts of animation, especially motion animation. Most of this animation takes advantage of storyboard double animations for either translate transforms or canvas left/top changes. Can I convert this project over to Silverlight?

View 2 Replies

Developing A System Will Be Able To Detect Motion?

Dec 13, 2009

i am developing a system will be able to detect motion. up to now i am able to stream the video that is connected to my PC to VB.NET. Now i want to switch between the webcam if there is more than one webcam connected to the system. For example, the user of the system will be able to chose any webcam that is connected to the system. I am able to detect all the webcam and display those devices into a ListView. But i don't know how to change the steaming video when the user select the device. Now the video screen show the image form the default webcam.

View 1 Replies

Display Text In Slow Motion?

Jun 24, 2010

How to Display Text in slow Motion.

View 16 Replies

VS 2005 A Motion Detection System?

Nov 18, 2010

my advance project for the final semester of software engineering is an intruder detection system which is based on motion detection. I'm using a web camera in order to capture the images sequently and let them to process for further checking to see the difference.

first of all i want to know, is this possible in vb.net (image processing)? if it is possible, please give me some ideas about this to start.i have a brief imagination about the structure but i'm not sure about the success

View 4 Replies

VS 2010 Mouse In Motion Events?

May 31, 2011

I'm trying to make a way to navigate around a custom grid. Basically, I'm implementing the drag-copy feature from Excel. Right now, you click on a cell grid and can drag around the grid. Anything in the drag area gets a green tint. Once you release the mouse button, whatever was in the first cell selected is copied to all the others that are tinted. That works pretty nicely, but it works only for the cells visible on the screen. I can live with that, but decided that if you dragged over the scroll bars or the column or row headers,then the grid should scroll (if there is anywhere to scroll).

That's where the problem arose. It turns out that scrollbars don't raise the MouseMove event (at least not as far as I can see), and the MouseEnter and MouseHover events are not fired as long as the mouse button is held. Interestingly, the MouseLeave event does occur when the mouse button is held, just as the MouseMove event is occuring for all the cells. That's pretty annoying. Why do some mouse events get raised when the mouse button is down while the others don't? Also, I suppose, is there any way around this?

View 2 Replies

Incorporate A PIC (to Handle Wireless Motion Sensors)?

Dec 18, 2009

how to incorporate a PIC with VB.

I`m trying to find out the steps needed to achieve that, i`m i correct?

1) i need to find a PIC that is suitable for my project (to handle wireless motion sensors)?

2) I need to write the code for the PIC? (does the manufacture of the PIC provides an environment to write the assembly language?)

3) Then i need to write the vb code?

4) Finally to use a serial port to create a communication between VB and PIC. Also are their any all ready made PIC`s that can support VB code direct without the need of writing the assembly code?

View 16 Replies

VS 2008 Form.show In Slow Motion

Sep 2, 2011

im using visual studio 2008 for my thesis. i have this mdi parent form as a container in my program and buttons in it to show different childforms. i am just wondering is it possible to show the childforms in slow motion manner, from left of the container to the center?

[Code]...

View 3 Replies

VS 2008 Form.show In Slow Motion?

Apr 27, 2011

VS 2008 form.show in slow motion

View 4 Replies

VS 2008 Physics And Realistic Motion In 2 Dimensions?

Apr 14, 2011

I'm making a game where the main character is a white blood cell. Right now I have a circle. 360 points. I want my character to squish against walls, jiggle while moving, etc... but I'm just at a loss as to how to even start doing this. What's the best way to implement that kind of 2-d physics?

View 4 Replies

VS 2010 Useing Webcam To Detect Motion

Nov 10, 2009

I am new in VB.NET. I want to use VB.NET to develop a program that will use a webcam to detect motion and trigger an alarm form PC.

View 9 Replies

Webcam Motion Detector - Compare The Two Images?

May 19, 2008

im creating a program which detects motion according to how much difference does the two images have. take note images come from a live webcam stream. the problem is how to compare the two images.

description of the program

a sensitivity text box will be placed on the program where it will compare with the computed difference of the two images. i have a program in vb6.0 that compares images like this

Private Sub Timer1_Timer()
'getting picture from camera
SendMessage mCapHwnd, GET_FRAME, 0, 0[code].....

now i cant translate this in vb.net i have included what i have now

View 2 Replies

.net - Circular Dependency Between MODEL And BLL?

Sep 1, 2011

Assuming an architecture as such.MODEL > BLL > DLL

Trying to implement lazy loading in my MODEL I have run into a circular dependency between my MODEL and BLL..Basically imagine a property in my model that I want to implement as follows

Public Readonly Property ProjectCategory As ProjectCategory
Get
If Me._ProjectCategory Is Nothing Then
Me._ProjectCategory = ProjectCategoryBLL.GetProjectCategoryByID(Me._ProjectCategoryID)
End If

[Code]...

I have my MODEL, BLL and DLL in separate projects and because of the fact that my BLL references my model I can not reference my BLL from my model as this would create a circular dependency.

View 3 Replies

Draw A Circular Gradient?

Mar 22, 2011

How do I draw a circular gradient like this in vb.net?

View 1 Replies

Working With A Circular Transparency?

Aug 24, 2009

my team is working on an application where we have to have one image which is acting as the base of all the elements on the screen.. and this same image has a transparency in the center. now this centre transparency is supposed to display a picture which will be captured from a web cam.currently everything working fine but the only problem which we are facing is that the picture is not proportionate to what is the actual resolution that it was shot at. it has been stretched from the top and bottom. the reason is that the imagebox which has been used to call this webcam display is a aquare.now it seems that the team is not being able to use the exact proportions of the image to call it in the picturebox for a reason that the final image needs to be cropped to fit in a circle.in simple words, i have a rectangular image and i want to draw a circle over this image. whatever is within the circle should be visible, whatever is outside the circle should be transparent. (a mask needs to be created...)but the only thing is that this circle will first display the image/video from the web camera and only once the picture is clicked, it should show the same picture within this circular area.

View 3 Replies

.net - High Speed Circular Buffer?

Jun 8, 2012

I have been asked to improve the memory efficiency of an application that is used for high speed data acquisition. After running the VS memory profiler several times and scanning the projects for obvious issues I came to the following conclusion: despite using a fixed size circular buffer for storing acquired sample points, the RAM usage increases relative to the polling period. For example: polling data for one signal at 2 microseconds can use 5 times more memory (private bytes) than when running at 50 microseconds ... even though the buffer size is the same.

The circular buffer is an array of SamplePoint objects. Each of these objects contains an array of Shorts (16 bit) for corresponding data per signal and one date object (8 bytes) for the time stamp. For efficiency, the circular buffer is Redimmed only once every time it begins polling and filled with empty sample points which are then "assigned".

Also, it seems that when we stop and run the application it hogs even more memory each time as though the Redim is not releasing the previous array. My questions boil down to the following: What is most memory efficient way of implementing a circular buffer containing managed objects which have arrays?Also, how and why is memory usage increasing with a fixed size array with different polling speeds? Does the garbage collector not have time? Do local variables get disposed of IMMEDIATELY when a sub or function exits?These are some of the doubts and concerns that I would like to rule out before proceeding.

[Code]...

View 1 Replies

Circular Reference In A TextBox_TextChanged Event?

Jun 10, 2009

I have created a TextBox array where certain cells are assigned a number which I do not want the operator to change either intentionally or inadvertantly.The relevant TextBox cells are identified by their BackColor, (in this case LightBlue)If the cell is changed the original content is immediately assigned to the cell and a relevant message is displayed.My problem is that by changing the value back to its original value I create another TextChanged event and the consequence is that the MsgBox is displayed twice, one after the other.I have avoided the problem by not displaying a message box. The outward appearance is that the TextBox is not changed at all, which of course is my aim.However I would prefer to display a message box.An example of the scenario is shown below.

Another bewildering fact, (to me), is that in the example below, if the check is not made of the BackColor but instead the value of the TextBox the problem doesn't occur

Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
If TextBox1.BackColor = Color.LightBlue Then[code]...

In the example above, if in the Text_Changed event handler the 'Remark' is changed from one 'If' statement to the other the differences in the result can be seen.

View 3 Replies

Circular Referencing - Validated Three Lists

Oct 5, 2010

I'm working on creating my own sudoku solver to learn vb.net. I decided to have an element class which represents a single square in the puzzle. That element then has references to three lists which can be validated (no duplicate numbers). The three lists then would be its corresponding row/column/subGrid. Each list then holds a reference to 9 elements. Thus in my design an element has a reference to a list, which then holds a reference to that same element. Now vb.net will allow me to do this so I don't think it is the same issue that I saw when searching for solutions to circular referencing. However, I still wonder whether or not this is bad design.

View 2 Replies

Create A Circular Buffer On The Heap?

Feb 24, 2010

How can I create a circular buffer on the heap in VB.NET ? This would be used for audio playback via P/Invoke to winmm.dll waveoutopen and waveoutwrite to support development of a software synth. I currently use the marshall class to build a regular array of bytes in the heap.

View 1 Replies

Creating A Circular VB Form - 2008?

Jan 31, 2010

Is it possible to create a circular visual basic form. I see plenty of tutorials on how to do this for VB6 but none on Visual Basic Express.

View 7 Replies

Disposing Of Objects And Circular References

May 24, 2010

I have a button which opens FormTest. When FormTest opens, it creates an instance of ClassTest and that class instance takes the form instance that called it (FormTest) so that it can perform operations on FormTest from the ClassTest class instance. So i have a form which owns an instance of a class which has a reference to the form.

[Code]...

View 1 Replies

DotNetBar Circular Progress Bar - Marquee?

Feb 7, 2012

There is a question that I have from YEARS after working with DotNetBar Components that How do you set the Marquee style of a normal progress bar on the circular one? The circular progress bar from DotNetBar, i want to be clear.There is no "Style" Property and now I really need to know it for a project I'm doing now

View 3 Replies

Use Circular Reference In A Calculation In Program?

Sep 1, 2010

I've got a requirement where I need to calculate a value, however also refer to this value when calculating it. So I've got for example[code]...

I can see how this can be achieved in excel using Circular Reference, however I'm not sure how I go about it when using VB.Net. Is there a similar method to create a Circular Reference as in excel or any other way I can possibly work out the TotalValue?

View 5 Replies

VS 2005 After Overriding WndProc For Motion And Closing App Doesn't Close

Feb 14, 2010

I made a Vista Aero -style form for XP, but when using it, the application won't close. The FormClosed and Disposed events fire, but not the HandleDestroyed event. I tried to get around that by handling the Disposed event and calling Me.DestroyHandle(), and it worked, but not if the user resized the form so that it caused an IndexOutOfRangeException in BlurImage().The code is attached.

View 2 Replies

Make A Circular Portion Of Rectangle Transparent?

Apr 26, 2011

If I were to draw a rectangle with e.Graphics.FillRectangle(), how would I make a circular portion of the rectangle transparent?

View 1 Replies

VS 2010 DirectSound - Streaming / Circular Buffer?

Feb 8, 2012

I use the following code (with Imports Microsoft.DirectX.DirectSound and Microsoft.DirectX) to play sound using an 8 second static buffer:

Dim SD As Device = New Device
SD.SetCooperativeLevel(Me.Handle, CooperativeLevel.Priority)
Dim MS As New IO.MemoryStream(Gbuffer) ' Gbuffer is byte array with properly formatted WAV data
Dim waveFormat As New WaveFormat
waveFormat.SamplesPerSecond = 44100
[Code] .....

What I would like to do next is to change to a "circular" or "streaming" buffer so that I can write new data "on the fly". I've done a lot of Googling but can't quite see how to adapt my present code to use a circular buffer. I can get the current write and play positions using Msb.GetCurrentPosition(iPlayPos, iWritePos) but how do I actually insert new data into the buffer? I have tried "manually" writing new data into my Gbuffer byte array but that doesn't work - I guess once a sound has been played through once, the data is cached somewhere and the contents of Gbuffer are not used again.

View 7 Replies

C# - Delegate Event To Form Without Creating Circular Reference

Jun 19, 2012

I have a class that is in an assembly due to being required for other projects that I'm currently working on. One class lets call it Class Factory, creates a group of controls which require click event handlers to be attached, I have algorithms which determine polymorphic behavior based on certain features but that is relatively irrelevant.

Due to the event handler having to open up a specific form that isn't part of my assembly, and that form requiring this "Factory" class. Without creating circular reference is there any way I can essentially "delegate" the handler event for the form to define? As a simple work around I have had to maintain two separate classes, one in the project with the form and one in the assembly.

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Width = 1500
Dim panel As New Panel
panel.Location = New Point(0, 0)
panel.Size = New Size(1000, 200)
[Code] .....

View 2 Replies

Custom Serialization And Circular References, Is There A Clean Solution?

Aug 3, 2010

I'm implementing some custom serialization (to byte array), and have run into a problem handling circular references.Example:

Class A
public MyBs as new List(of B)
End class

Class B
public MyParent as A
public MiscInt1 as integer[code]....

If I know that an instance of B will only ever be serialized through the serialization of an instance of A, then I can handle the setup of the MyParent reference from the instance of A and not even record that information inside the byte buffer for the instance of B.This doesn't feel quite right, but it might be the best solution.

View 1 Replies







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