Premium Only Content
Learn Visual Basics Tutorial Project3 Part2 Screen Blocker
k next thing we need to do is go into load ether by using the drop down box or double clicking on a blank part of the form and type frame1.visible = false.
This will make it so when the form loads the frame 1 with the text and button won't be seen ull see y in a few minutes.
Then we click on button one and right in if text1.text = enter code here then Msgbox "you must ever a lock code.
No scrap that we have done message boxes b4 so let do it with a label instead.
So make a label on your form nice and big,,, then go back into button 1 and right after the THEN
Label1.catopion = "you must enter a pass word"
Else
Label1.visabull = false
That's so if the label has been trigged it will then disappear and if its not trigged then it will just ignore that part.
Then put under that frame 1 dot visible = true
Then in load we will put label1. Visible = false
Because when the program starts we don't want to see the label.
Now ill leave out end if so u can see what happens when we try and run the And then we run it to see
Block if without end if,,, VB is good that it will tell u that u suck..lol
So we just right end if.
Ever one always makes mistakes when programming it's not the fact u make mistakes it whether or not u can work out what you have done wrong and then how to fix them,,
So let's try it again,,,
Ok that bit works,,, but our label isn't showing up,,,, any guesses why ?
If you said ya ant told it to show up,, then dead on .
So just in command button one line after the THEN we need to put label1 Visible = true
Now we try running it again and see what happens
Arr there we go,,, that what we wanted to see,,,
One of the big things with programming is deductive reasoning,,, when ever your making a program from an idea in your head you're going to be doing a hell of a lot of,, ok what do i have to do to get this to do this,, and what happens if i do that,,, and how the hell do i fix this,,,
To me this is the fun part about programming its like a big puzzles or even a video game,,
So type in our pass word, 123456 click our button and the frame shows up,,,
Now we just have to add our unlock part of the program.
Before we do that lets just fix this label up.. justify to centre and make the text bold and size 12 so it can be seen easy then let's change the appearance from 3d to flat and put a border around it.
Then we run it to see how it looks,,
-
2:53:04
Steven Crowder
4 hours agoVanity Fair's Susie Wiles Hit Piece: Who's To Blame PLUS Special Guest Jillian Michaels
317K442 -
LIVE
The Illusion of Consensus
42 minutes agoYou’re Healing The Wrong Way - Meditation, Trauma & Awakening EXPLAINED | Loch Kelly
64 watching -
1:17:06
The Rubin Report
3 hours agoLeftist Insults Jillian Michaels on Piers Morgan & It Gets Brutal Fast
41.7K18 -
LIVE
Sean Unpaved
2 hours agoMike McDaniel & Dolphins BENCH Tua Tagovailoa For Quinn Ewers! | UNPAVED
123 watching -
3:12:33
Misfits Mania
17 hours ago $26.43 earnedANDREW TATE VS CHASE DEMOOR OFFICIAL OPEN WORKOUT
196K23 -
LIVE
LFA TV
17 hours agoLIVE & BREAKING NEWS! | WEDNESDAY 12/17/25
2,158 watching -
LIVE
SternAmerican
1 day agoFINAL ELECTION INTEGRITY CALL OF 2025 – WEDNESDAY, DECEMBER 17 | 1:00 PM EST
214 watching -
1:04:41
MYLUNCHBREAK CHANNEL PAGE
4 hours agoA.I. Destroys History
16.4K10 -
1:48:47
The Mel K Show
3 hours agoMORNINGS WITH MEL K- Confronting Inverted Truth & Suicidal Empathy - 12-17-25
19.6K7 -
LIVE
The Shannon Joy Show
3 hours agoSJ LIVE Dec 17 - The Latest On #RealityDC: Queen Susie Takes Her Throne. Move Over Trump, There’s A New Sheriff In Town! With Special Guest - Independent Political Analyst Carey Wedler!
116 watching