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


ADVERTISEMENT

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

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

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

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

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

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