Go Back   Gaming Gutter > Non-Gaming > Programming > Tutorials


Tutorials - Looking for programming tutorials to increase your knowledge? Do so here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post Buy it NOW! Special...
11-19-2008 10:30 PM
Last post by babygi9538
Today 06:34 PM
71 Replies, 888 Views
Go to first new post Its my Birthday tomorrow.
12-02-2008 07:23 AM
by Zombies
Last post by Bex
Today 06:34 PM
57 Replies, 300 Views
Go to first new post Ruzzykinz.
Today 06:14 PM
Last post by Vaginal-Milkshake
Today 06:33 PM
27 Replies, 67 Views
Go to first new post Lenny Conundrum
02-09-2007 11:09 AM
by Noodle
Last post by G.I.R.
Today 06:23 PM
740 Replies, 34,723 Views
Go to first new post Whats your favorite...
08-06-2008 08:59 PM
Last post by Mirage
Today 06:18 PM
109 Replies, 841 Views
Reply
 
LinkBack Thread Tools Display Modes

 [VB.NET] Effects to your GUI! Part Two
Old 08-22-2008, 11:36 AM   #1 (permalink)
Cogito, ergo sum.

Male Checker is online now
 
Checker's Avatar
 
Join Date: Feb 2008
Posts: 1,888
GPoints: 1,782
iTrader: 7 / 100%
Checker Is a Lord of AwesomenessChecker Is a Lord of AwesomenessChecker Is a Lord of AwesomenessChecker Is a Lord of Awesomeness
Rep Power: 9
[VB.NET] Effects to your GUI! Part Two

TWO PART GUIDE.
IF YOU DID NOT READ PART ONE TURN BACK TO LEARN MORE!
[VB.NET] Effects to your GUI! Part One


Ever wanted your programs to cool effects like all the "cool" programs? Well, you can now!
In this tutorial I will teach you how to make your program form (GUI) have cool effects.
It will include effects such as:
  • Fading in when start of program
  • Fading out when start of program
  • Width enlargement ( Like at the press of a button Your GUI enlarges in width. )
  • Height enlargement ( Basically the same except enlarges in height. )
Fading in:
Make a form with nothing inside.( Must I really screenie this? D: )
No. Now then Double click the form and enter in this code.
Code:
  Dim Fade As Double
        For Fade = 0.0 To 1.1 Step 0.1
            Me.Opacity = Fade
            Me.Refresh()
            Threading.Thread.Sleep(100)
        Next
For = Just a starting point for Doubles
Fade() = The one in Blue = Fade from 0.0 to 1.1 gradient.
Me.Opacity = This forms opacity
= Fade = Fade from 0.0 to 1.1 gradient.
Me.Refresh() = Refresh the form
Threading.Thread.Sleep() = Don't worry about it.
Next = End

In total this means:
When this form is opened Fade in.

Fading Out:

Now you are still at your code, and do what this screenie shows.

Once you are at " Form1 Events " Go TO form Closing and enter in this code:
Code:
Dim Fade As Double
        For Fade = 1.1 To 0.0 Step -0.1
            Me.Opacity = Fade
            Me.Refresh()
            Threading.Thread.Sleep(100)
        Next
1.1 To 0.0 = Make gradient 1.1 to 0.0

All of this code is:
When I open the program make it fade in, when I close make it fade out.

It should now look like this:




Guide made by:
Checkers/Check

If you want to use this guide on any site please do so just include my name.


__________________


Neutral Evil
  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 06:35 PM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.12143993 seconds (100.00% PHP - 0% MySQL) with 19 queries