Upload
ayhieestelloso
View
215
Download
0
Embed Size (px)
Citation preview
8/7/2019 Form goes down form goes up
http://slidepdf.com/reader/full/form-goes-down-form-goes-up 1/2
Form goes down form goes up, Form goes down form goes up,Just chucking a homer Simpson here mmm beeerrr , lolOkies so this is what im going to show yas how to do today just a very basic but rather cool formsliding technique.Doing something like this can ad a bit of class to ya program mmm ether that or make you looklike a real tosser who just trying way to hard..lol ether wayOww look b4 i do what i say, is going to be slightly different then what i right so it makes a littlemore scène so don't do what i say do what i type,, ull get what im talking about in a secOkies 1st thing im going to do is make a command button and then double click on it and insidewere going to right..Do untilIf me dot height is less than 7000Then me dot height = me dot height + 1Do eventsLoopOr you could read this a different wayDo until me. Height = greater then 7000Whichever way helps you to remember the code better its totally up to you.Now theirs ppl out there screaming at their monitors and opening there emails about to right tome and tell me that its the 2nd that's correct
Butas long as you remember how to do it then personally i don't think it matters as this is only learnbasic VB not get a job with Microsoft programming vb 2010.So whatever way helps you remember the way to do this is what i believe is the way to say it..Make scène? no? Stiff...lolLook if you say to someone in the philharmonic hay its ever good boy deserves fruit there gunnalook at you like your nuts but as long as u remember its E G B D F who cairs right ..lolOk anyway back to itLets make it go the other way shallMake anther button and right in itdo until me dot height = less than 2000Me dot height = me dot height -- 1Do events
LoopRun the program and down it goes click the other button and up it goes,,Ok i hear you saying hey you only had 1 bottom not 2 ya ripping us off,,,Arrr ha not true let me show youPlace the 2nd button on top of the 1st button and 1 sec ill just change the form colour so we cansee this better,,,No go into form load by clicking on a black part of the form and right in thereCommand button 2 dot visible = falseThis will make it so no2 button can't be seen when the program is 1st startedNow we want number 1 button to disappear once we use it and so seeing im lazy im going tocopy and paste in number 1 button command bottom visible = false which will make it invisibleonce we click it and then under it tell it to show up number 2 button by saying command 2 dotvisible = true
Then do exactly the same in number 2 button but in reverse command 1 visible true command 2falseAnd then run it,,,Cool ok so what happens if we want the form to go sideways not downwardsEzzzy change height to width like this,,And run the program and cooligeSo as sure as batman fucks robin ill be back with yet another useless codeand some more shity commentary very shortlyso if ya don't want to miss what stupid things im going to say next make sure ya subscribe.Okies well once again if ya need help with ya programs jump into the help forms on the site and
8/7/2019 Form goes down form goes up
http://slidepdf.com/reader/full/form-goes-down-form-goes-up 2/2