Learn Visual Basics Tutorial Project3 Part3 Screen Blocker

By: Screen Rant

86 views

Uploaded on March 08, 2008 by Gymjunnky Powered by YouTube

Ok the next thing we want to do is make an escape button,,, this will close down our program in case something goes wrong so we don't have to ctr alt delete and lose all our stuff,,, and this would also be a good time to save your project to a file on your desk top..
So we draw a decent size command button on the form and then double click on it and type in side unload me and then under that end
If you happen to get a error with that line unload me or it doesn't work then try Unload.Me
This is the command to shut down the program.
We wont bother changing the caption or anything on the button because we will delete it after the project is complete
Now we're going to remove our border around our form because we don't want anyone to be able to shut this down without using the pass word
Do this by using the property menu like this
Ok well the next thing I'm going to show u how to do is put a pic on your iface,,
So 3rd last icon on the left above OLE is a icon if a pitcher not to be confused with the one that's right up the top as thats a pitcher frame,,,
We click on the pic and draw a big box on the iface then go over to properties and find the pic we want to use,,, because this is a full screen program we want a pic that's really big,, so a wallpaper or screen saver pic something like that will be good
So go over to pic and then click eh button locate the pic which you should have put it in your folder already then add it,,
Then we just going to right mouse click on the pic and say send to back
Ok time to make our release button,,
Click on button 2 which should be titled unlock and type in there
If text2 .text = text1.text then
Unload me end
Else
Label1. caption = " wrong pass "
and then under that end if
Anyone notice anything wrong with that ..?
Yerp that's right we need to tell it to make the label so we can see it,, so
So under the else command label1 . Visible = true
now we want to run it and see how its going
ok let check to see of our
please add pass word is working,,, buy not typing a pass work in..
which it is
and then lets tell it the pass word is 1 .. and then in unlock put in the wrong pass word. 123
ok that's good,,, says "wrong pass word"
mm now that's blending into the back ground so let's change the colour of the form again to something deferent
right now I'm just going to make shore our frame blends in by changing it to black seeing the pic im using is all black around the area,,, and then run the program.
Now I'm going to change the label from opaque to transparent.
then were going to stretch the form out as far as i can get it
this is so we can get the pic to coverer the whole form,,,
we could do this with coding but ill show you how to do that in up and coming tutorials.
This time we will just use the property menu for it
Well even thou we have stretched out the picture box the pic its self isn't moving,,, what we need to do is change its property's to stretch like so.
Then we change the BG of the form to black to mach our pic just in case there are some gaps left over

Tags:
Program, VB6, Visual, Basic, Tutorials, Gym, Learning, Textbox, Programmer, 1st, Beginner, Timers, 101, Labels, How To

ALSO FROM THIS CHANNEL

Comments on Learn Visual Basics Tutorial Project3 Part3 Screen Blocker

RECOMMENDED CHANNELS