2
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 , lol Okies so this is what im going to show yas how to do today just a very basic but rather cool form sliding technique. Doing something like this can ad a bit of class to ya program mmm ether that or make you look like a real tosser who just trying way to hard..lol ether way Oww look b4 i do what i say, is going to be slightly different then what i right so it makes a little more scène so don't do what i say do what i type,, ull get what im talking about in a sec Okies 1st thing im going to do is make a command button and then double click on it and inside were going to right.. Do until If me dot height is less than 7000 Then me dot height = me dot height + 1 Do events Loop Or you could read this a different way Do until me. Height = greater then 7000 Whichever 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 to me and tell me that its the 2nd that's correct But as long as you remember how to do it then personally i don't think it matters as this is only learn basic 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...lol Look if you say to someone in the philharmonic hay its ever good boy deserves fruit there gunna look at you like your nuts but as long as u remember its E G B D F who cairs right ..lol Ok anyway back to it Lets make it go the other way shall Make anther button and right in it do until me dot height = less than 2000 Me dot height = me dot height -- 1 Do events Loop Run 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 you Place the 2nd button on top of the 1st button and 1 sec ill just change the form colour so we can see this better,,, No go into form load by clicking on a black part of the form and right in there Command button 2 dot visible = false This will make it so no2 button can't be seen when the program is 1st started Now we want number 1 button to disappear once we use it and so seeing im lazy im going to copy and paste in number 1 button command bottom visible = false which will make it invisible once we click it and then under it tell it to show up number 2 button by saying command 2 dot visible = true Then do exactly the same in number 2 button but in reverse command 1 visible true command 2 false And then run it,,, Cool ok so what happens if we want the form to go sideways not downwards Ezzzy change height to width like this,, And run the program and coolige So as sure as batman fucks robin ill be back with yet another useless code and some more shity commentary very shortly so 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

Form goes down form goes up

Embed Size (px)

Citation preview

Page 1: Form goes down form goes up

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

Page 2: Form goes down form goes up

8/7/2019 Form goes down form goes up

http://slidepdf.com/reader/full/form-goes-down-form-goes-up 2/2