Make A Christmas Light Animation Via Computer Control?

Jan 29, 2012

I am trying to make a Christmas light animation via computer control. I am using VB.Net and have tried several examples I have found, but I get the same error: port is closed. The code I am using is this:

Imports System.IO.Ports
Public Class Form1
Dim instance As New SerialPort

[Code].....

I have tried several things and I still get the error message that the port is closed.

View 6 Replies


ADVERTISEMENT

VB Power Control - Make The Light Flash On And Off

Apr 17, 2010

I'm trying to make a USB strobe light type thing. I have a cut USB cord with an led attached to the black and red wires. Now I'm trying to write a script to make the light flash on and off really fast. I've tried several different apis but none are doing it.

View 2 Replies

Make A Plinko Game For Christmas Party In .Net

Aug 27, 2009

I need to make a Plinko game for our Christmas party in .Net..DI am guessing that I would need to add a little physics to the puck, but I am not the best at math.

View 1 Replies

VS 2005 Make A Light Version Of A Blackjack Game?

Mar 11, 2010

I'm trying to make a light version of a Blackjack game. The rules I need to use are as follows:

Ace = 1
Normal Cards = 2-10
Color Cards (king, queen, etc,) = 11

The dealer can keep hitting until it reaches 17 or under 21, he must always stay once it hits 17 or over (without busting obviously).

I know the ace normally should be 1 or 11 normally but I don't want to complicate things, I want to get the main thing of the program working first.

Public Class frmMain
'declaration to help generate number
Dim RandomClass As New Random()

[code]....

View 10 Replies

How To Make 3D Animation Of Cube

Sep 8, 2009

I'm making this rubik's cube program, and I wanted to make a 3d animation of the cube doing the moves, and I figured the best option for that was using the XNA extension. However, doing that brings up a problem. I want to have lots of different options in the Mdi parent form that will interact with the moving 3d cube. The problem with this and using XNA is I can't use both the normal form and the XNA game in the same project. How would I go about having the 2 different projects interact? Just like a txt file or something?

View 1 Replies

Make Animation Only With 1 Images?

Jun 10, 2011

I want to ask, how i can make animation only with 1 images, inside there are like few different images. I seen this in few games, and i want to try it. I think there should by picturebox and it should scroll my animation right with timer, by few pixels. Image example: [URL]

View 5 Replies

Animation Control Recommendations?

Apr 3, 2011

What would you recommend as an easy-to-use animated .gif control?

View 2 Replies

VS 2008 - GIF Stops Animation As Soon As Control Goes To WebServer

Aug 4, 2009

I am using an webservice to update my dataset and have a picture box to show an processing image i.e. a gif showing a progress bar and the words processing. My prob. is the gif stops animation as soon as the control goes to the webserver. I have done this.
Timer1.Enabled = True
Timer1_Tick(Nothing, Nothing)
picServer.Refresh()
GetMasterData()
In the timer1_tick even too I have tried picserver.refresh (picserver is the picture box). Getmasterdata is the process where the data is returned from the web service and as the control goes to the web service it somehow stops the process of the gif. It takes about 5 mins to popup the data from the webservice this code is in the form load event of the main form.

View 8 Replies

VS 2008 - How To Make Animation Player Inside Class

Jul 16, 2009

I've been trying to make basically a simple animation player inside a class so that I can use it in a game I have to make for a school IPT project. When I first tested out some code I found, it was not in "class form", ie there were just loose variables as I was only animating a single .gif file. The code worked perfectly, and the animation was drawn frame by frame by the e.Graphics.DrawImage function.

Now that I have moved the code into a class (So I can run more than one animation at a time, though Im still trying to get only one to work), The e.Graphics.DrawImage function didnt work. It would draw the first image, but then (even though the function is called as shown by stepping through the lines of code), the picture doesn't update. I know the frame has changed as Ive kept track of the current frame in the debug window, but it still wont work.

I have had troubles like this with other GDI functions, where if the variable to draw is inside a class (etc) it simply wont work, it will only work if it is a loosely floating variable. (i.e. Sprite.Image doesnt work, If I just make an image it does). With the code below, I have tried in the e.Graphics.DrawImage function submitting me.wth.animatedImage and wth.animatedImage

Public Class Form1
Dim wth As New vsprite
Public Class vsprite
Public animatedImage As New Bitmap("C:Documents and SettingsSamDesktopexplosion.gif")
Public currentlyAnimating As Boolean = False
[Code] .....

View 11 Replies

VS 2008 - Make Sure That The Animation Restarts After The Second Form Was Closed?

Feb 1, 2010

I am using a Gif animation on my Mainform. When i open a second form and then return to the mainform - the animation stops. How can i make sure that the animation restarts after the second form was closed?

View 1 Replies

Make Automatic Backup From One Computer To Another Computer?

Feb 27, 2011

how to make automatic backup from one computer to another computer ? I'm using vb.net. We are on the local network.

View 14 Replies

Process Of Designing A Computer Control Program To Control A HF Communications Receiver?

Jul 11, 2008

I am in the process of designing a computer control program to control a HF communications receiver (radio), and have found a problem with the Serial port. I am using VB Express Edition 2008. This module of the program is supposed to take an input string from another part of the program, format it, break it into 4 bytes, and send it to the radio in hex form via COM port 1. The problem comes in when you try to enter a frequency with an 8 or a 9 in it. The 8 or 9 is usually replaced by 45, ex.-input 9900, receiver tune 4545. The exact same thing happens with 8's, input 8800 and receiver tune 4545. All other numbers other than 8 or 9 work fine. The strange part of it is that sometimes the 8's and 9's work, and work correctly. For instance, 900, 1900, 2900, 3900, 4900, 5900, 6900, and 7900 all work correctly. This led me to believe that is may only be when the 8 or 9 is in the first position, but that is not the case, it also shows up in other positions as well. All other frequencies that do not have 8 or 9 in them also work. I ran into this same problem with VB Express 2005, and worked on it for weeks before giving up and going back to VB6.0. This same module (with exception of the port open command) runs flawlessly under VB6. I have even tried importing the MSCOMM control from VB6, but it gives the same results. In de-bugging mode, all of the inputs, decimal and hex seem to be correct, so the problem must come in after you click the command button, but before it leaves the COM port.

[Code]...

View 19 Replies

Make A Program That's Show "My Computer" - "My Documents" And "control Panel"

Sep 6, 2009

1- I want to know how can i make a program that's show My computer , my documents , control panel ,my musics, my pictures and my recent documents. 2- I have Made A file extension that i have named it ".fff" . _ I have a form that's contains A text box that i have named it "txtmain" when i creating the setup project i have make a file type and when i want to click on the file extension the program is running but there's no text in the text box but when i running the file in Notepad it's

[Code]...

View 2 Replies

VS 2010 Animation - Add An Effect Where A Panel Sweeps Out Of The Way To Make Room For Another Panel?

Nov 24, 2011

I would like to add an effect where a panel sweeps out of the way to make room for another panel. This is sort of like a sliding effect, and I think at one point in time this could be seen on Apple's website under their product pages. I came up with some code, but it isn't working.

[Code]...

View 1 Replies

How To Add Light

Sep 12, 2009

I have an image of a lamp that the user can move around the form.. I have a button for on and one for off.. Does anyone have any suggestions as to how I would make the light effect? Can you make it programatically? Like a V shape with the bottom of the V being the sides of the lamp shade and everything in the path of the V becomes illuminated?

View 3 Replies

Light A Button Up?

Jan 29, 2010

I have a button, When I go with my mouse over it I want that it lights up to a color.

View 1 Replies

Traffic Light Using Tab Key?

Jan 28, 2011

Simulate a traffic light with three small square text boxes on the form. Initially the bottom text box is green, the rest are dark gray. When the tab key is pressed, the middle box turns yellow and the bottom box turns dark gray. The next time the tab is pressed, the top box turns red and the middle box turns dark gray. Subsequent pressing of the tab key cycles through the three colors. Hint: First place the bottom text box on the form, then the middle, then the top. I did all this and dabbled below. Does that look at all correct...minus the timer thing...I got the timer code (which is not needed) but am not sure how to write it so the tab key does the work. This is really confusing to me, but it is a required class.

Dim Counter As Single
Private Sub Timer1_Timer()
Counter = Counter + 1

[Code].....

View 7 Replies

Creating A Traffic Light?

Nov 11, 2010

Simulate a traffic light with three text boxes placed vertically on a form. initially, the bottom text box is solid green and the other text boxes are dark grey. when the tab key is pressed, the middle text box turns yellow and bottem box turns dark grey. next time the tab key is pressed, the top box turns red and the bottem two turn dark grey. Basically the tab key cycles through the colors.First off let me say im not looking for an entire code. What im looking new to VB (been working on it for only a week) and im haven trouble finding a sourcecode for "tab". I named the bottem text box "Green", middle text box "yellow" and top "Red"....how do i go about finishing the code?

Public Class trafficlight
Private Sub Green_BackColorChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Green.BackColorChanged

[code].....

View 3 Replies

Light Sensor And Audio Announcement

Nov 6, 2009

I'm new at VB therefore i need some guidance on how to go about doing e current project that i have. Currently doing on Light Sensor and Audio Announcement.

[Code]...

View 5 Replies

Programming Buttons/Turning Light Off And On?

Jun 10, 2011

I am supposed to be writing a program for my instructor using VB 2008. It is sort of like a quiz program. You build the "light bulb" program but instead of names and colors, it consists of two forms. Question 1 with a "next" button and the second form for Question 2 with a "previous" button. I have no idea how to link the two so that when you click "next" it goes to the second page and vice versa.

View 2 Replies

Wire Up A Light Buld To A Usb Output From VB?

Dec 19, 2009

how to wire up a light buld to a usb output from vb please?Me heads a shed and me lifes a dream, Its all for fun and mostley free.

View 10 Replies

Improve Traffic Light System With Use Of Barrier

Dec 30, 2009

please help me am in need of code for traffic light simulator, wanted to design a simulator with barriers which close a lane when it light red and opens when it lights green.These barriers should be in form of red and black bars on the entrance of any parking area.The reason to barriers is that here in Uganda traffic is controlled mostly by the police men so i wanted to improve the traffic light system with the use of barrier.

View 3 Replies

SkinCrafter Light Has A Couple Of Bugs With RichTextBoxes?

Feb 16, 2009

When I downloaded VB 2005 Express I took advantage of the bundle of goodies on offer and downloaded SkinCrafter Light.I really like the four skins that come with SkinCrafter Light, and I am using one on my current project (example of the skin I am using here). However, SkinCrafter Light has a couple of bugs with RichTextBoxes (these bugs are known to SkinCrafter, as I can see posts about them in their forum, but they have gone unanswered in over two years!)One bug is that any text that is colored in a RichTextBox is turned back to black when the skin is applied, and if you click anywhere in the RTB the application will crash (you can see my RTB on the right bottom of the form in my screenshot above).

I use colored text in my RTB, but, at a pinch,I could make do without (as I really DO like the Skin), but the problem remains of crashing when clicking inside a RTB.I was wondering (can't test at the moment as I am at work) if simply placing a control, such as a Button, Label, Picture box etc, set to transparent, over the top of the RTB, would solve the problem, so a user could not click inside the RTB (but would be clicking on the invisible control over the top instead).

View 1 Replies

Visual Studio Light Switch Licensing

Jan 23, 2012

I am already using Light Switch. When i am trying to deploy it is asking license information. If i buy a Enterprice license key then how many programs i can deploy with that same license? I am sorry for the noob question but i can not find anything details about Light Switch licensing.

View 2 Replies

Interface And Graphics :: Simulation Of A Light Source And Mirrors

Jan 6, 2011

I am trying to do is to draw a ray of light emitted by a light source and it is going to be reflected mirrors. I rotate the emitter and mirrors and the ray of light shold obey the laws of reflection. The emitter and mirrors are in an opaque room which means light should not go out. Where I am now is that I am able to draw the ray but when the angle is 90 degrees ( +or-) all the drawing disappears. I set some conditions to make up for this situation, but it does not seem to work. Besides if the angle exceeds 90 degrees, the line is drawn in the opposite direction.One other thing that happens is I set the ray to stop when either end_x_emitter_ray or end_y_emitter_ray = 500. It works for the end_x_emitter_ray but not for the end_y_emitter_ray[end_x_emitter_ray and end_y_emitter_ray are the point where the ray end]I have uploaded the my whole code here. Can you guys suggest me what can be done to make it work appropriately?

View 6 Replies

Animation - Link The Timer To The"timer Start Button" And Make It Move?

Mar 15, 2009

I already created a button "enjoy button" that i want to move in a form when the "timer start button" is clicked.how do link the timer to the"timer start button" and make it move? this is what i tried so far..then am blank first

Quote:
Private Sub MainForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Me.xTimer.Enabled = False
xTimer.Interval = 10[code].........

View 21 Replies

Getting VB To Control Objects Outside Of Computer

Nov 9, 2009

I am told that the code does not seem to contain any reference to a template file for controlling the device. This information might be in the array StatoCubo, and perhaps the text file is used to populate that array, but there is no code here to do that.

I am using VB 2008 Express edition. I did not write the code below but i was told that it works but it dont. I am building an 8 x 8 x 8 led cube and have most of the code i need to make it work but i can not figure out how to make VB callup(?) a .txt (template)file to control the cube designs. Below is the code so far (some of it is in Italian i think) and the file name i want to use is; RainbowExplosion_8x8x8_bw_bit01 VER1.txt

Public Declare Sub Out Lib "inpout32.dll" Alias "Out32" (ByVal PortAddress
As Integer, ByVal Value As Integer)\par

'--------------------------COSTANT FOR LPT1
ADDRESS--------------------------------\par

Public Const IndirizzoData As String = "&H378" 'DATA REGISTER: 8 bit\par

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

View 12 Replies

Getting VB To Control Objects Outside Of Computer?

Jun 22, 2010

I am new here and even newer to VB so if this is the wrong place to post this or i use the wrong terms i apologize, it is not my intention to offend or insult. I am told that the code does not seem to contain any reference to a template file forcontrolling the device.This information might be in the array StatoCubo,and perhaps the text file is used to populate that array, but there is nocode here to do that.I am using VB 2008 Express edition. I did not write the code below but i was told that it works but it dont.I am building an 8 x 8 x 8 led cube and have most of the code i need to make it work but i can not figure out how to make VB callup(?) a .txt (template)file to control the cube designs. Below is the code so far (some of it is in Italian i think) and the file name i want to use is;

RainbowExplosion_8x8x8_bw_bit01 VER1.txt
Public Declare Sub Out Lib "inpout32.dll" Alias "Out32" (ByVal PortAddress
As Integer, ByVal Value As Integer)\par

[code].....

View 1 Replies

VS 2005 Control Computer Through .net?

Feb 26, 2011

i want that i control my compute through vb.net. i mean to say that i want that i have a projec on which i have buttons though which i could go to any drive of my computer, or any folder, or can play any song or can open any image or any other file. can i do this?

View 7 Replies

DB/Reporting :: Create Local Databases On The Light-side Of Things?

Jul 18, 2008

My boss wants me to create local databases on the light-side of things. I was researching on what solutions are available, we discussed the possibility of using text or xml files... but we dropped the idea since we want to use SELECT, UPDATE, DELETE command sets (or the like)I proposed the idea of using Access files (mdb) but he told me that he doesn't want the user to have Access installed on their computers.What are the choices avaible, am I forced to install Access on machines that would be using my VB .NET app to access mdb files?

View 2 Replies







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