I am taking an intro class to VB and we are working on the Light Bulb project (some of you may have heard of it). Essentially the way it works is you click on a picture of a light bulb to "turn it on" and you get a message that tell you to turn it off, so you click it again to turn it off and the process restarts. It's setup so that you can change the color of the output text (which I have working) and I also have the concatenation working, but not tied to the light bulb yet.
Unfortunately, the text book for this course is EXTREMELY vague with respect to the project, so if you're stuck; like me, well, you're on your own. I've done some Google searches and I found a blog from someone who did this project, but their code in my opinion is less than stellar, it just doesn't make sense because it appears that some of the methods she used, we haven't learned yet.
Anyway, on to my problem. I have the light bulb working (sort of). When I run the program within VB to debug the program starts with the light off, which is what it's supposed to do, you can click it again and it turns on, which is what it's supposed to do, however, when you click it again to turn it back off, it just disappears completely and you can't get it back without exiting and re-running the project. I know it's something I'm missing in the code (obviously), but what it is that I am missing, I haven't a clue. I've read the chapter backwards and forwards and I'm not seeing what I am missing. I am sure it's mentioned, but probably only in passing or in a very small paragraph. It mentioned concatenation in this manner, I had to figure it out by trial and error.
Is anyone familiar with this project or program? I don't have it with me currently, but I can email it (or attach it to this post) to whomever might be willing to help me out if you need to see the project or code. We haven't gotten into If, then, else statements or anything like that, so I'm pretty sure there is another method to get this working correctly.
Any help anyone can provide would be greatly appreciated.
I tried to get the latest secureboot certificate for my old Dell 7010 Optiplex machine.
I restored the default settings to Secure Boot. Big mistake.
Now when secure boot is on. The machine doesn't boot and complains about no booting devises.
The computer's secure boot can't find where to boot and the information apparently has to be entered manually.
Secureboot's settings are now years old and it can't find a new configuration.
What could be done here?
There are plenty of files to choose from in the secureboot menu, but I don't know what to put there for each of the four
Windows 11 upgraded from 10..... originally who knows what (used machine)
They need to follow the standard for AAA game but they will go at lowest level for triple a game because will sell more, earn kudos and the milk it for years anyway.
look how much they milked gta 5 and how they milked the original 3 - San Andreas and vice city.
it is probably going to be a fun game but then they allowed someone to remake classics that somehow were more broken and worse then original
i hope they don’t ###### up this one!!!
In addition to the "sidebar app list" and "Collections" features, Microsoft will also deprecate the "Drop" feature. Before you publish this news and credit another site, here is the original source:
https://x.com/i/status/2067838711870439583
.
Question
nytiger73
Hey Everyone -
I am taking an intro class to VB and we are working on the Light Bulb project (some of you may have heard of it). Essentially the way it works is you click on a picture of a light bulb to "turn it on" and you get a message that tell you to turn it off, so you click it again to turn it off and the process restarts. It's setup so that you can change the color of the output text (which I have working) and I also have the concatenation working, but not tied to the light bulb yet.
Unfortunately, the text book for this course is EXTREMELY vague with respect to the project, so if you're stuck; like me, well, you're on your own. I've done some Google searches and I found a blog from someone who did this project, but their code in my opinion is less than stellar, it just doesn't make sense because it appears that some of the methods she used, we haven't learned yet.
Anyway, on to my problem. I have the light bulb working (sort of). When I run the program within VB to debug the program starts with the light off, which is what it's supposed to do, you can click it again and it turns on, which is what it's supposed to do, however, when you click it again to turn it back off, it just disappears completely and you can't get it back without exiting and re-running the project. I know it's something I'm missing in the code (obviously), but what it is that I am missing, I haven't a clue. I've read the chapter backwards and forwards and I'm not seeing what I am missing. I am sure it's mentioned, but probably only in passing or in a very small paragraph. It mentioned concatenation in this manner, I had to figure it out by trial and error.
Is anyone familiar with this project or program? I don't have it with me currently, but I can email it (or attach it to this post) to whomever might be willing to help me out if you need to see the project or code. We haven't gotten into If, then, else statements or anything like that, so I'm pretty sure there is another method to get this working correctly.
Any help anyone can provide would be greatly appreciated.
Thanks!
Link to comment
https://www.neowin.net/forum/topic/1134522-vb-2010-homework-question/Share on other sites
10 answers to this question
Recommended Posts